![]() |
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 |
| Handling ftp error | vivek_damodaran | Shell Programming and Scripting | 1 | 06-23-2008 10:37 PM |
| need advice on AWK | kekanap | Shell Programming and Scripting | 14 | 04-22-2008 05:01 AM |
| Any advice would help | liquidstyleb | Red Hat | 2 | 03-05-2008 07:44 AM |
| Error Handling in Korn Shell scripts | bhgopi | UNIX for Advanced & Expert Users | 4 | 09-06-2005 06:44 PM |
| Need advice: Awk vs something else? | yongho | UNIX for Dummies Questions & Answers | 1 | 06-13-2005 09:15 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Error Handling -pls advice
Dear friends,
I am using the below command in my unix script ----------------------------------------------- File_Name=`ls $CTRY*$DATE_SUFFIX*zip` --> Command-1 ..... if [ -f $FTP_DIR/$File_Name ] then unzip -a $File_Name -d $CTRY_DIR/$CTRY else echo "File for $CTRY dated $DATE_SUFFIX does not exist in $FTP_DIR" fi But I get the following error message printed on UNIX screen , which I want to get rid off. I think this error message appears owing to failure of ls command in COmmand-1 as stated above Error message printed on screen is KE*20080711*zip not found CAn you please advice how to get rid of this messages to be printed on screen. Instaed can we move such errors to temp files Regards Suresh |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|