08-27-2008
There is some standardization but no generally applicable convention, other than that 0 means success and other values are failure codes. Examine the exit codes for grep as a good example (they are explained in its manual page); many of them are rather specific to the application.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Does anyone know how I can supress the "Killed" message that's produced when I kill a process? I've got a script that performs a "tail -f" on a database error log and pipes the output into an awk script which looks for certain error messages and forwards any that qualify to my pager. The problem... (2 Replies)
Discussion started by: kenwolff
2 Replies
2. Shell Programming and Scripting
Hi Friends :p
I have a little problem please help me out. I have a Unix based OS Sun Server having oracle 8i as database on it. The server has one client with windows OS. The client uses developer 2000 (GUI) to run query and run processes. I want to know how can I know the PID of a process run... (3 Replies)
Discussion started by: vanand420
3 Replies
3. AIX
Hi,
I am elango. I am working with UNIX AIX version 5.
I am facing tow problem whenever I am trying to run a script.
1. The moment I run the script 3 more jobs are getting started automatically.
I used PS -ef command to check the running Jobs, I found totally 4 jobs
are running for... (4 Replies)
Discussion started by: Elango
4 Replies
4. UNIX for Advanced & Expert Users
Hi,
I have a shell script which i am running. I want it's starting time (the time when the execution of the shell script started) in another shell script. Note that the process has already terminated when i need it's starting time.... else i could have used ps -f | cut -d" " -f5...
But that's... (2 Replies)
Discussion started by: k_chaaya
2 Replies
5. Solaris
hi all,
Is there a simple script anyone could through out to me, to find the pid of a process given the name. I actually need to bind this pid to a processor set. I would probably put these comamns in a shell script which would have.
a) kick start the executable
b) get the pid
c) bind it to a... (10 Replies)
Discussion started by: Naanu
10 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this.
Thanks in advance,
Amudha (7 Replies)
Discussion started by: samudha
7 Replies
7. Shell Programming and Scripting
Hi
I have written a shell script to find and kill the particular process. Here in shell script i have written the code like
cnt = $(ps -ef | grep Shree)
echo $cnt
I am getting the output
root 2326 2317 0 14:39:46 pts/1 0:28 Shree -f fdc.fbconf FDCapp.fbapp
Here I want to... (2 Replies)
Discussion started by: Shreedhar Naik
2 Replies
8. UNIX for Dummies Questions & Answers
Hello All,
I have a script which has a functionality to sleep for 300 seconds after it does some processing, so in the logs if i check after the 3 iteration of sleep it didn't write saying "sleeping for 300 seconds". I suspect putty would automatically terminate session as i cannot access it any... (1 Reply)
Discussion started by: Ariean
1 Replies
9. AIX
HI,
i used
ps -ef | grep 3539052 | grep -v grep
and i got a output like ths
root 3539052 3407918 0 May 07 - 709:31 /usr/sbin/syslogd
but what i need is instead of full path /usr/sbin/syslogd i want only the process name that is 'syslogd' here. (3 Replies)
Discussion started by: sumanthupar
3 Replies
10. UNIX for Beginners Questions & Answers
My server has /var/log/messages with 'init: initLogger main process (608798) terminated with status 1' errors. I researched about the error and also followed the steps from stackexchange :
157059/error-init-ttys0-dev-ttys0-main-process-1612-terminated-with-status-1]linux - ERROR: init: ttyS0... (0 Replies)
Discussion started by: Paras Pandey
0 Replies
LEARN ABOUT DEBIAN
dirvish-runall
DIRVISH-RUNALL(8) System Manager's Manual DIRVISH-RUNALL(8)
NAME
dirvish-runall - run a set of dirvish backup jobs.
SYNOPSIS
dirvish-runall[OPTIONS]
DESCRIPTION
Run all the jobs specified in the Runall field of the dirvish master configuration file.
OPTIONS
Each option may be unambiguously abbreviated.
--config configfile
Read configfile for the Runall: field. By default dirvish-runall will use the Runall: field from the master configuration file.
This will only be used by dirvish-runall itself and not be propagated to the dirvish processes.
See dirvish.conf(5) for more details.
--no-run
--dry-run
Don't actually do anything. Just display what would have happened.
--quiet
Run quietly, only report errors.
Normally dirvish-runall will report the dirvish commands invoked with timestamps.
--version
Print the version information and exit.
EXIT CODES
To facilitate further automation and integration of dirvish-runall with other tools dirvish-runall provides rationalised exit codes. The
exit codes are range based. While the code for a specific error may change from one version to another it will remain within the specified
range. So don't test for specific exit codes but instead test for a range of values. To the degree possible higher value ranges indicate
more severe errors.
0 success
1-199 Number of dirvish jobs that failed. If more than 199 jobs failed 199 will be the exit code.
200-219
An error was encountered in loading a configuration file.
220-254
An error was detected in the configuration.
255 Incorrect usage.
FILES
/etc/dirvish/master.conf
alternate master configuration file.
/etc/dirvish.conf
master configuration file.
SEE ALSO
dirvish.conf(5)
BUGS
DIRVISH-RUNALL(8)