![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to delete the files from local host to remote host | krishna176 | SUN Solaris | 3 | 03-24-2007 01:48 PM |
| concurrent udp server | Frank2004 | IP Networking | 0 | 03-29-2006 10:01 PM |
| host alias not working: host not found | FunnyCats | UNIX for Advanced & Expert Users | 4 | 05-13-2005 01:36 PM |
| No concurrent login | champion | UNIX for Advanced & Expert Users | 10 | 01-24-2003 08:06 AM |
| QNX host cannot ping SCO host, vice versa | gavon | IP Networking | 2 | 08-20-2001 05:57 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to end a host concurrent program in WARNING?
Hi,
I want to end a host (shell script based) concurrent program in WARNING. Is it possible? Tried out a few things but it just either ends in NORMAL or ERROR. Any ideas/inputs would be appreciated. Thanks, coolblue_3 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Within a script, an exit nnn command may be used to deliver an nnn exit status to the shell (nnn must be a decimal number in the 0 - 255 range), so setting up "WARNING = 255" and then :
if [condition] then exit ${WARNING} should be ok for you. |
|
#3
|
|||
|
|||
|
Hi sysgate,
Thanks for your reply. Well I'm a novice when it comes to shell programming. Can you please elaborate on setting up "WARNING = 255"? I know the exit part though Thanks, coolblue_3 |
|||
| Google The UNIX and Linux Forums |