08-22-2016
Quote:
Originally Posted by
busyboy
Reverse Engineering the code is not a big problem for those who dare.
It is not about "reverse engineering": if you are not the person who wrote this code I'd say throw it away, carefully analyse what you
need and then implement
that. Personally i think the script you have shown us is beyond repair.
I hope this helps.
bakunin
8 More Discussions You Might Find Interesting
1. Solaris
Hi,
What is the best log analysis software for Solaris ??
Regards (3 Replies)
Discussion started by: adel8483
3 Replies
2. Programming
I would like to know how I could do the following :
void func(){
int a = 100; b=0;
int c = a/b;
}
void sig_handler (int sig,siginfo_t *info,void *context){
//signal handling function
//here I want to access the variables of func()
}
int main(){
struct sigaction *act =... (7 Replies)
Discussion started by: vpraveen84
7 Replies
3. Shell Programming and Scripting
Hi,
I am trying to write a script which would go search and get the info from the logs based on yesterday timestamp and write yesterday logs in new file. The log file format is as follows:
""""""""""""""""""""""""""... (3 Replies)
Discussion started by: harish.parker
3 Replies
4. Shell Programming and Scripting
:confused:Hi ,
Can someone please advise what is the meaning of metacharacters in below code?
a_PROCESS=${0##*/}
a_DPFX=${a_PROCESS%.*}
a_LPFX="a_DPFX : $$ : "
a_UPFX="Usage: $a_PROCESS"
Regards,
gehlnar (3 Replies)
Discussion started by: gehlnar
3 Replies
5. Shell Programming and Scripting
what does this line in a script mean??
I have tried to give it at the command prompt and here is what it returns
ksh: /db2home/db2dap1/sqllib/db2profile: not found.
. /db2home/db2dap1/sqllib/db2profile
i have tried the same thing for my home directory too and the result is the same
.... (5 Replies)
Discussion started by: ramky79
5 Replies
6. UNIX for Dummies Questions & Answers
Hey Guys,
Does anyone know how to count the separate amount of words in a text file?
e.g
the 5
and 20
Furthermore does anyone know how to convert whole numbers in decimals?
Thanks (24 Replies)
Discussion started by: John0101
24 Replies
7. Infrastructure Monitoring
Dear All,
I am an performance tester. Now i am working in project where we are using linux 2.6.32. Now I got an oppurtunity to learn the monitoring the server. As part of this task i need to do analysis of the Nmon report. I was completely blank in this.
So please suggest me how to start... (0 Replies)
Discussion started by: iamsengu
0 Replies
8. Shell Programming and Scripting
Appreciate help for the below issue.
Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt..............
1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies
LEARN ABOUT DEBIAN
apache2::sitecontrol::grantallrule
Apache2::SiteControl::GrantAllRule(3pm) User Contributed Perl Documentation Apache2::SiteControl::GrantAllRule(3pm)
NAME
Apache2::SiteControl::GrantAllRule - A rule that grants permission to do everything.
SYNOPSIS
In your instance of a ManagerFactory:
use Apache2::SiteControl::GrantAllRule;
...
sub getPermissionManager
{
...
$manager->addRule(new Apache2::SiteControl::GrantAllRule);
...
return $manager;
}
DESCRIPTION
Apache2::SiteControl::GrantAllRule is a pre-built rule that grants access for all permission requests. This rule can be used to help
implement a system that has a default policy of allowing access, and to which you add rules that deny access for specific cases.
Note that the loose type checking of Perl makes this inherently dangerous, since a typo is likely to fail to deny access. It is recommended
that you take the opposite approach with your rules, since a typo will err on the side of denying access. The former is a security hole,
the latter is a bug that people will complain about (so you can fix it).
SEE ALSO
Apache2::SiteControl::ManagerFactory, Apache::SiteControl::PermissionManager, Apache2::SiteControl::Rule
AUTHOR
This module was written by Tony Kay, <tkay@uoregon.edu>.
COPYRIGHT AND LICENSE
perl v5.14.2 2006-03-17 Apache2::SiteControl::GrantAllRule(3pm)