Page 1 of 1

How to ensure that ftp scritp ran fine

Posted: 17 Mar 2010 11:32
by RaviCKota
Hi All,

In our project we use several ftp and scp scripts. All these scritps are usually triggered through DOS batch files. Something like

ftp -v -i -d -s:E:\Apps\Scripts\Test\Confirm.ftp

Now the problem is, how can I know that Confirm.ftp did ran successfully with out any issues.

Say
ftp -v -i -d -s:E:\Apps\Scripts\Test\Confirm.ftp
Send some email notification after completion.

Now, if the Confirm.ftp fails, still I would be getting email confirmation saying that the job ran fine which is wrong. How can I fix this. How to tap the return code of the ftp script execution.

Thanks
RK.

Re: How to ensure that ftp scritp ran fine

Posted: 18 Mar 2010 09:59
by RaviCKota
Could some one help me out with this ?