This is a discussion on Question concerning AIX ftp command within the AIX Operating System forums, part of the Unix Operating Systems category; --> We are using shell scripts and .netrc files to initiate ftp connections within our Oracle Applications evironment. Periodically, we ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| We are using shell scripts and .netrc files to initiate ftp connections within our Oracle Applications evironment. Periodically, we have jobs that simply hang. It usually revolves around an FTP server that is not responding. I have developed an alternate solution that utilizes a built in UTL_TCP coding with in the Oracle Database and it works well, and it happens to have a transfer timeout option. As a default it was set to NULL meaning never ending. I changed the parm to a default of 2 minutes. If the ftp server hangs for some reason,the ftp session fails and terminates. I want to emulate the same functionality in my shell scripts, but I can't find a matching parameter that allows me to control the timeout for ftp connections at the AIX ftp commandline level. I saw that you can set daemon parm for the respective ftp server that would control timeout, but I need a solution that works in the shell script (korn shell by the way). Something that watches our ftp connection and fails the shellscript if the ftp session timesout... Hope I am clear enough in my request. MylxHQ - Oracle Resource Portal http://oracle.mylxhq.com bsc7080mqc@mylxhp.com (replace mylxhp with mylxhq to reply/contact) |
| |||
| bsc7080mqc@mylxhqremove.com 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?" http://www.aglami.com/tpfaq.html "Meanings are another story." http://www.ifas.org/wa/glossolalia.html |
| ||||
| Thank you. I will do that.... however, I have found from time to time, that AIX does not have the same commandline switches as everything else, so I posted here. Again thank you. On 20 Sep 2003 18:33:09 GMT, Nicholas Dronen <ndronen@io.frii.com> wrote: >bsc7080mqc@mylxhqremove.com 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 MylxHQ - Oracle Resource Portal http://oracle.mylxhq.com bsc7080mqc@mylxhp.com (replace mylxhp with mylxhq to reply/contact) |