in ftp, put put *`date '+%Y%m%d'` doesn't work

in ftp, put put *`date '+%Y%m%d'` doesn't work

Post by Default Use » Sat, 29 Jan 2000 04:00:00



In ftp I want to put a file from that ends in the current yyyymmdd.  eg.

filename_20000119 would be a the filename I want to put as it has the
current date (when I wrote this message) Using the following doesn't
work, any ideas?

put *_`date '+%Y%m%d'`

 
 
 

in ftp, put put *`date '+%Y%m%d'` doesn't work

Post by Ken Pizzi » Sat, 29 Jan 2000 04:00:00



>In ftp I want to put a file from that ends in the current yyyymmdd.  eg.

>filename_20000119 would be a the filename I want to put as it has the
>current date (when I wrote this message) Using the following doesn't
>work, any ideas?

>put *_`date '+%Y%m%d'`

While ftp clients often have some rudimentary globbing
capablility built-in, they do not usually support the shell's
command or parameter substitution.  If you're working in an
interactive ftp session then just type in the date instead of
the command.  If your scripting this put, preprocess the script
each time before feeding it to ftp.

                --Ken Pizzini

 
 
 

1. in ftp, put put *`date '+%Y%m%d'` doesn't work

In ftp I want to put a file from that ends in the current yyyymmdd.  eg.
filename_20000119 would be a the filename I want to put as it has the
current date (when I wrote this message) Using the following doesn't
work, any ideas?

put *_`date '+%Y%m%d'`

2. Term/Tredir errors from Ultrix/SunOS<<===>>Linux

3. C-Kermit 7.0 binary for MkLinux - Last chance!

4. Slow FTP 'gets', Fast 'puts'???

5. VisionFS

6. FTP: logging things other than 'get' and 'put'

7. Apache-reverse proxy-base href

8. Slackware 1.1.2 smail doesn't put 'Recieved:' header in email

9. 'put' files from unix to VMS via batch ftp.

10. FTP 'put' file permissions

11. Set umask of FTP 'put'

12. FTP file transfer slow with 'put' command