![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Terminal And Cron Job Return Different Status Code | isaac_ho | Shell Programming and Scripting | 1 | 06-02-2008 12:12 AM |
| Return of EXIT status ( $? ) | ZINGARO | HP-UX | 1 | 03-12-2008 07:07 AM |
| Return status of all previous runs | mpang_ | Shell Programming and Scripting | 4 | 06-27-2006 02:58 AM |
| return ftp status | blt123 | Shell Programming and Scripting | 12 | 07-21-2005 05:48 AM |
| Return status... | Shaz | Shell Programming and Scripting | 7 | 11-19-2002 06:35 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
does it mean i should do a Code:
if ($? = -1) print $! ;# to output error message else print "success" did i use $? wrongly? Hi blowtorch, i amended my code, and it worked.thanks a lot Code:
$exit_value = $? >> 8;
if ($exit_value != 0)
{print "Sending of file NO\n";}
else
{print "Sending of file DONE\n";}
Last edited by new2ss; 06-29-2006 at 12:29 AM.. |
![]() |
| Bookmarks |
| Tags |
| inappropriate ioctl for device, perl, perl shift, shift, shift perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|