| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Can I check FTP return code in Pro*C
Er, 'no' would have been my response...
Sure, you can check the ftp 'exit status', but all that will tell you is if ftp successfully 'exited' - which of course it normally does. It will *not* tell you if the commands you ran whilst in ftp were successful - in fact, they could have all failed.
Either drop a lower level and program in API calls (using sockets), or get you ftp commands to pipe some output to a log file, which you then parse for errors. I tend to grab both local and remote directory listings and do a compare on them to make sure my ftp's worked OK.
MotoX.
Michael Krolewski wrote in message <3583489C.6FC0533D_at_u.washington.edu>...
>Yes.... as would be the case in any C program.....
>
>Mike Krolewski
>
>layman_at_poboxes.com wrote:
>
>> Dear all,
>>
>> I want to launch ftp within a Pro*C program but I want to check
the
>> return code of the ftp command. Is it possible?
>>
>> Kevin
>
>
>
Received on Wed Jun 17 1998 - 05:26:32 CDT
![]() |
![]() |