![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| RE: exit value | vslewis | Shell Programming and Scripting | 1 | 10-07-2008 01:23 PM |
| what is meaning of exit(0) and exit(1) | amitpansuria | UNIX for Dummies Questions & Answers | 1 | 08-28-2007 03:02 AM |
| exit(0) versus exit(1) | enuenu | High Level Programming | 9 | 06-22-2007 10:56 AM |
| Where can I find a list of exit codes? (Exit code 64) | jkuchar747 | UNIX for Dummies Questions & Answers | 3 | 12-07-2004 06:08 PM |
| exit value of the last run | didi | Shell Programming and Scripting | 2 | 11-13-2001 11:17 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
/etc/ is a directory; hosts is a filename.
Code:
ls /etc/hosts ls -l /etc/hosts cd /etc ls hosts ls -l hosts Code:
if [ < pretend syntax> some test returns true ] ; then
< do something >
else
< do a different thing >
fi
so, "exit 0 fi" is only part of an if block. exit 0 - means end with success exit 1 - means end with failure - the 1 can be other non-zero numbers |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|