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 because it changes monthly (based on the month & year), but using batch file results in the file not being uploaded. When I connect directly, I can use the * just fine: % 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 file_foo2015-05-15.csv Any ideas how I can achieve the latter with the former? Thanks, Jungle -- ------- inum: 883510009027723 sip: jungleboo...@sip2sip.info xmpp: jungle-boo...@jit.si