![]() |
|
|
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 |
| Help req for...shell script to catch "db2 connect" errors ... | frozensmilz | Linux | 1 | 09-23-2008 07:34 PM |
| catch unzip errors | Laetitia | UNIX for Dummies Questions & Answers | 2 | 09-04-2008 09:49 AM |
| instead of psftp? | zoque | UNIX for Dummies Questions & Answers | 4 | 09-23-2006 06:14 AM |
| search command using PSFTP | newbiepgrmr | UNIX for Dummies Questions & Answers | 1 | 03-10-2006 03:55 PM |
| How to catch the rscyn errors? | redlotus72 | UNIX for Dummies Questions & Answers | 3 | 03-17-2005 07:21 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Not able to catch psftp errors
Hi,
While running the psftp with the below code,it is able to connect and open the ftp connection and closed the connection. But my scriptfile Test.ftp,is having the code "cd directoryname" where the directoryname does not exists. In this case i should be able to catch the error,instead it is givving terun code 0(success) which belongs to closing connection. how can i trap this error??? C:\\psftp.exe -v -i "C:\\filename.ppk" user@server.com -b "C:\\Test.ftp" File "c:\\Test.ftp contains below code cd directoryname_notexists bye |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|