Skip to content
Advertisement

Handling Dates in FTP

Here is my ftp script

JavaScript

The output of this script is:

JavaScript

I googled and seen some posts regarding dates but all provided formats not worked for me.

Please advise

Thanks in anticipation

Advertisement

Answer

through to FTP, which can include executing commands, substituting variables, and the like. That is to say, instead of writing:

ftp < ftp_args> << EOT
blah
bloho $VAR1
bleeeoogah $(some cmd)
EOT

just do this:

( echo blah; echo bloho $VAR1; echo bleeeoogah $(some_cmd) ) | ftp

Advertisement