Hello David,
At the risk of repetition, if EXITONERROR is set true,
the ftp session will be terminated on encountering a
5xx (permanent fatal) error.
It used to behave inconsistently previously (ignoring
some 5xx errors) and this was corrected.
"mkdir" of a directory which already exists, results in
a 5xx error. Hence ftp terminates, if EXITONERROR is set.
If you want to go ahead with the execution, even if
there is a duplicate directory, then I guess, you should
follow Steve Fulton's suggestion, and turn EXITONERROR
off, before mkdir and then turn it on again.
Hope this helps.
David Rutherford wrote:
>
> We've just upgraded to 5.5.6 this past weekend, and included with the update
> was...
>
> FTPFD57A GENERAL FIXES FOR FTP FOR 5.5 PUSH (S Patch).
>
> Now of course, the EXITONERROR FTP command works differently than before
> (the comment was made that it now works correctly!).
>
> Whereas before, we could have scripts that performed a MKDIR before
> performing a CD into that directory, now the MKDIR will cause the whole
> script to abort if that directory already exists.
>
> The only solution I can think of is to not have EXITONERROR set to ON. But
> I'm concerned that this will allow 'real' errors to go unnoticed.
>
> Any thoughts, advice, help much appreciated.
>
> Regards,
>
> David
> (+44 171 658 5452)
>
> __________________________________________________________________
>
> Confidentiality Notice
>
> This message may contain privileged and confidential information. If you think, for any reason, that this message may have been addressed to you in error, you must not disseminate, copy or take any action in reliance on it, and we would ask you to notify us immediately by return email to "[log in to unmask]".
--
Best regards,
Raghu (mail me at rram at india dot hp dot com)
CSY R & D, Bangalore, INDIA
Disclaimer: I speak for myself, not HP
Murphy's Technology Law #6:
Tell a man there are 300 billion stars in the universe, and
he'll believe you. Tell him a bench has wet paint on it, and
he'll have to touch to be sure.
|