Please show us how you run these scripts? Are you typing the commands at a keyboard? Are you using unix "cron"? Is there a wrapper script - if so, what does the script contain?
Ps. As DGPickett implies you can indeed cause a sub-Script to exit with a non-zero exit status (e.g. "exit 2")which you can check in a wrapper script. Test the value of the variable $? on the line immediately following the invocation of the sub-Script in a numeric comparison. This is good scripting technique and not at all unusual. Confine exit codes to simple and low numbers because no Shell will allow a non-numeric exit code and many Shells cannot deal with large numbers in exit codes.
Difficult to suggest suitable scripting without knowing the possible values of $rc and knowing whether the variable contains a number or a string.
Ps. It always helps to know what Operating System and version you have and what Shell you prefer.
Last edited by methyl; 01-14-2011 at 06:52 PM..
Reason: typos and Ps.
Hai all..
How do i terminate my telnet session automatically when my java applicatiion exits. i have a file run which executes my java application and takes care of all class and library path settings prior to the execution. I would like to terminate my session when my application exits. The... (4 Replies)
In my system , there are a system user "cronusr" , it is mainly to run the crontab job in the database .Sometimes the cronjob process will be failure ( due to some reason ) so that many cronusr process are in the system , it affect other process in the system ,
I want to have a script that can... (2 Replies)
I want to have a script to terminate the system process that generated by user oracle_usr and have already processed for over 10 minutes , could suggest the script ? thx (1 Reply)
We have a system user "oracle_usr" always run some process in the system , but sometimes , these processes will not stop automatically until we terminate the process , can suggest the method how to terminate the process that is run by "oracle_usr" and run over 10 minutes ? thx (5 Replies)
OS : Solaris X86
gcc version 3.4.6
when i run my application, C with Motif application crashed and formed core. I collected the truss ouput.
Incurred fault #6, FLTBOUNDS %pc = 0xFE8B35CD
siginfo: SIGSEGV SEGV_MAPERR addr=0x00000275
Received signal #11, SIGSEGV
siginfo:... (2 Replies)
Hi
I'm trying to do an upgrade for one application and whenever I run the upgradre the program shows the error that mcrypt module is not initially loaded with php.
My server is running xampp 0.9 and I know this library of mcrypt is already installed.
I changed the php.ini file in order to... (0 Replies)
I have executed a command which has ports that have to be assigned.
then I deleted the files. Now I need to reinstall the command. but it says the ports are not free
How to terminate the port connections and reinstall in solaris unix
---------- Post updated at 09:07 PM ----------... (7 Replies)
Hi Experts,
I am very much new to linux scripting, I am currently working on reducing my manual work and hence writing a script to automate few task.
I am running below command to snmpwalk the router..
snmpwalk -v 3 -u WANDL_SU -a MD5 -A vfipmpls -x DES -X VfIpMpLs -l authPriv... (19 Replies)