![]() |
|
|
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 |
| sigempty what means? | Puntino | UNIX for Dummies Questions & Answers | 1 | 04-28-2008 09:44 AM |
| What does ls /nosuchdir means ??? | risshanth | UNIX for Dummies Questions & Answers | 9 | 02-06-2008 04:46 AM |
| what it means? | rraajjiibb | UNIX for Dummies Questions & Answers | 4 | 08-31-2004 02:36 PM |
| What does ##* means | yeheyaansari | UNIX for Advanced & Expert Users | 2 | 02-14-2002 09:39 AM |
| what is means by tar xvr - | E-Quality | UNIX for Dummies Questions & Answers | 2 | 09-24-2001 10:48 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
$? means that the return code of the previous command. When you write a script, we need to ensure that the command has successful or not. This will be done by checking the return code of the previous command. i.e $?
Upon successful execution of command, it will return the code 0 else non-negative no. For ex: $ rm tmp $ echo $? 0 $ ls tmp ls: tmp: No such file or directory $ rm tmp rm: cannot remove `tmp': No such file or directory $ echo $? 1 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|