![]() |
|
|
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 |
| Mandriva: 'ghostscript' arbitrary code execution | iBot | Security Advisories (RSS) | 0 | 02-29-2008 03:10 PM |
| perl - understand process status and continue the code execution | sysgate | Shell Programming and Scripting | 2 | 01-04-2008 09:23 AM |
| execution status of gotoURL in Win32::IEAutomation | gurukottur | Shell Programming and Scripting | 2 | 11-22-2007 03:27 AM |
| Capturing last command execution status in a script. | videsh77 | Shell Programming and Scripting | 2 | 04-12-2007 02:19 PM |
| Failed to check status code in "rsh" command | nir_s | Shell Programming and Scripting | 9 | 07-03-2006 10:05 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hello people,
I am using KSH and inside my script I do a cksum and check the status code to see whether the command sucessfully. Here even though the cksum fails due to file not existing the status returned is still 0 because the awk command worked fine. How do I capture just the status of the cksum command execution without breaking the below listed code into multiple lines. Please let me know. /usr/bin/cksum $cksum_tmpdir/$EXTFILE | awk '{print $1 $2}' > $cksumb echo $? Regards, Tipsy. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|