This is a discussion on sftp in a script within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi, I'm running AIX 4.3.3 and i'm using sftp to send a file. This job is scripted, and is ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I'm running AIX 4.3.3 and i'm using sftp to send a file. This job is scripted, and is run as a cron job. I had to install expect, and the job seemed to run fine with small files. We've gotten up to about 1MB in file size and now, sftp will stall, and that forces the script to exit. If I transfer small files, (less than 20k), it works in the script. If I run it interactively, it works. Any suggestions on what I can do with this? |
| |||
| On Tue, 16 Nov 2004 11:56:43 -0500, "Dale DeRemer" <dderemer_nospam@agmc.org> wrote: >Hi, I'm running AIX 4.3.3 and i'm using sftp to send a file. This job is >scripted, and is run as a cron job. I had to install expect, and the job >seemed to run fine with small files. We've gotten up to about 1MB in file >size and now, sftp will stall, and that forces the script to exit. >If I transfer small files, (less than 20k), it works in the script. >If I run it interactively, it works. >Any suggestions on what I can do with this? > > Sounds like there is a timeout occuring in the expect process. At the top of your expect script before you fork the sftp session try adding a line that reads: TIMEOUT -1 as this effectively disables a timeout. Let us know if this works? Bob |
| ||||
| Bob, Thanks, that seems to work. Dale "Bob_M" <r.mariotti@financialdatacorp.com> wrote in message news:1100752202.fk1JwW3H6e85LWeUhpqgjA@teranews... > On Tue, 16 Nov 2004 11:56:43 -0500, "Dale DeRemer" > <dderemer_nospam@agmc.org> wrote: > > >Hi, I'm running AIX 4.3.3 and i'm using sftp to send a file. This job is > >scripted, and is run as a cron job. I had to install expect, and the job > >seemed to run fine with small files. We've gotten up to about 1MB in file > >size and now, sftp will stall, and that forces the script to exit. > >If I transfer small files, (less than 20k), it works in the script. > >If I run it interactively, it works. > >Any suggestions on what I can do with this? > > > > > Sounds like there is a timeout occuring in the expect process. > > At the top of your expect script before you fork the sftp session try > adding a line that reads: > > TIMEOUT -1 > > as this effectively disables a timeout. > > Let us know if this works? > > Bob |