[email]bsc7080mqc@mylxhqremove.com[/email] wrote:
bmmc> We are using shell scripts and .netrc files to initiate ftp
bmmc> connections within our Oracle Applications evironment. Periodically,
bmmc> we have jobs that simply hang. It usually revolves around an FTP
bmmc> server that is not responding. I have developed an alternate solution
bmmc> that utilizes a built in UTL_TCP coding with in the Oracle Database
bmmc> and it works well, and it happens to have a transfer timeout option.
bmmc> As a default it was set to NULL meaning never ending. I changed the
bmmc> parm to a default of 2 minutes. If the ftp server hangs for some
bmmc> reason,the ftp session fails and terminates.

bmmc> I want to emulate the same functionality in my shell scripts, but I
bmmc> can't find a matching parameter that allows me to control the timeout
bmmc> for ftp connections at the AIX ftp commandline level. I saw that you
bmmc> can set daemon parm for the respective ftp server that would control
bmmc> timeout, but I need a solution that works in the shell script (korn
bmmc> shell by the way). Something that watches our ftp connection and fails
bmmc> the shellscript if the ftp session timesout...

This isn't a question about AIX. Please post this question to
comp.unix.shell.

Regards,

Nicholas

--
"Why shouldn't I top-post?" [url]http://www.aglami.com/tpfaq.html[/url]
"Meanings are another story." [url]http://www.ifas.org/wa/glossolalia.html[/url]