Hi,
How to get the logs for successfully executing of a solaris command?
Where the logs will be stored?
How to know that the commands is executed successfully or not?
Thanks,
Susi. (4 Replies)
Hi,
I am trying to write a script which would figure out who has run which command and their IP. As i dont have any clue as to which commands would do this job, i request some gurus to help me on this.
Thanks
Vishwas (2 Replies)
Guys,
i am facing a very strange issue, my code below does an ftp to server A and gets a file to Server B, once the file is in B an if condition is present to check if the pattern of the filename is ABC* then it has to be encrypted using OPENSSL as ABC.enc else if it of pattern 123* has to be... (3 Replies)
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Guys,
How can we know whether a script has been executed successfully or not ?
We dont have any log directories, and we are not given a chance to modify the script. Could someone help me out with this Thanks (2 Replies)
Hi,
I am working on a HP-UX box. Mailx command running successfully but no mails received. Here is what I am doing
rocfm@comhp73 - mailx -s "subject" abc@gmail.com < abc.txt
Null message body; hope that's ok
rocfm@comhp73 - echo $?
0
rocfm@comhp73 - echo "something" | mailx -v -s... (1 Reply)
Hello,
I have written a command n shell script :
srvctl relocate service -d t1 -s s1 -i i1 -t t1 -f
If the above command executes successfully without error I need to echo
"Service relocated successfully
and If it errors out I need to trap the errors in a file and also need to make... (1 Reply)
Hi Guys,
I like to output every command executed in the script to a file.
I have tried set -x which does the same.
But it is not giving the logs of the child script which is being called from my script.
Is there any parameters in the Set command or someother way where i can see the log... (2 Replies)
Hi ,
I have written a shell script to call a java program say load_id.sh .This sh script indeed is executed implicitly in other sh script which calls 2 more sh scripts one by one. I need to check if the load_id.sh (which calls java program) is executed successfully only then continue with... (1 Reply)
Discussion started by: preema
1 Replies
LEARN ABOUT CENTOS
file::checktree
File::CheckTree(3) User Contributed Perl Documentation File::CheckTree(3)NAME
File::CheckTree - run many filetest checks on a tree
SYNOPSIS
use File::CheckTree;
$num_warnings = validate( q{
/vmunix -e || die
/boot -e || die
/bin cd
csh -ex
csh !-ug
sh -ex
sh !-ug
/usr -d || warn "What happened to $file?
"
});
DESCRIPTION
The validate() routine takes a single multiline string consisting of directives, each containing a filename plus a file test to try on it.
(The file test may also be a "cd", causing subsequent relative filenames to be interpreted relative to that directory.) After the file
test you may put "|| die" to make it a fatal error if the file test fails. The default is "|| warn". The file test may optionally have a
"!' prepended to test for the opposite condition. If you do a cd and then list some relative filenames, you may want to indent them
slightly for readability. If you supply your own die() or warn() message, you can use $file to interpolate the filename.
Filetests may be bunched: "-rwx" tests for all of "-r", "-w", and "-x". Only the first failed test of the bunch will produce a warning.
The routine returns the number of warnings issued.
AUTHOR
File::CheckTree was derived from lib/validate.pl which was written by Larry Wall. Revised by Paul Grassie <grassie@perl.com> in 2002.
HISTORY
File::CheckTree used to not display fatal error messages. It used to count only those warnings produced by a generic "|| warn" (and not
those in which the user supplied the message). In addition, the validate() routine would leave the user program in whatever directory was
last entered through the use of "cd" directives. These bugs were fixed during the development of perl 5.8. The first fixed version of
File::CheckTree was 4.2.
perl v5.16.3 2013-02-07 File::CheckTree(3)