Re: sftp script put help

2015-05-17 Thread jungle Boogie
On 16 May 2015 at 01:19, Craig Skinner wrote: > > I used to have a script create batch files in /tmp, > each with the full name of the incremental dump file to sftp. > > But I've found rdist. (OpenBSD uses ssh by default.) > > Look at rdist(1) EXAMPLES section, & > http://www.benedikt-stockebrand.

Re: sftp script put help

2015-05-16 Thread Thomas Bohl
Hello, Am 16.05.2015 um 01:07 schrieb jungle Boogie: I want to upload a file automatically with a cron job so I'm using the -b flag. % sftp jungle@host Connected to host. sftp> cd home/jungle sftp> put file_*.csv Uploading file_foo2015-05-15.csv to /usr/home/jungle/file_foo2015-05-15.csv fil

Re: sftp script put help

2015-05-16 Thread Craig Skinner
On 2015-05-15 Fri 20:58 PM |, Barry Grumbine wrote: > > I have never used sftp, but from the man page it looks like the sftp > commands need to be in a separate file. Yes. I used to have a script create batch files in /tmp, each with the full name of the incremental dump file to sftp. But I've

Re: sftp script put help

2015-05-15 Thread jungle Boogie
Hi Barry, On 15 May 2015 at 20:58, Barry Grumbine wrote: > Hi, > > I have never used sftp, but from the man page it looks like the sftp > commands need to be in a separate file. Something like: > > fetch2.sh: > #!/bin/sh > sftp -b /home/jungle/batchfile jungle@host > > /home/jungle/batchfile: > cd

Re: sftp script put help

2015-05-15 Thread Barry Grumbine
Hi, I have never used sftp, but from the man page it looks like the sftp commands need to be in a separate file. Something like: fetch2.sh: #!/bin/sh sftp -b /home/jungle/batchfile jungle@host /home/jungle/batchfile: cd /home/jungle put file_*.csv aaa_completed If it were me, I would just use

sftp script put help

2015-05-15 Thread jungle Boogie
Hello All, Running Openssh's sftp version 3 on both client and server but the OS is not openBSD. I want to upload a file automatically with a cron job so I'm using the -b flag. % cat fetch2.sh #!/bin/sh cd /home/jungle put file_*.csv aaa_completed I can't specify the file name completely beca