The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-09-2008
Registered User
 

Join Date: Jan 2008
Posts: 2
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
Reply With Quote
Forum Sponsor
  #2  
Old 01-10-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,200
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.
Reply With Quote
  #3  
Old 01-10-2008
Registered User
 

Join Date: Jan 2008
Posts: 2
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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0