>Try one of these:
>519 $ echo $(TZ=EST5EDT date +%Y-%m-%d:%H:%M:%S)
>2017-11-13:13:29:29
>520 $ echo $(TZ=GMT0    date +%Y-%m-%d:%H:%M:%S)
>2017-11-13:18:29:50


Colons in Windows filenames is not a good idea. Will simply not work.


Someone already suggested to create a shell script for this. Something like 
this maybe (not tested, I don't have sftp available):


#! /bin/sh
cd /sftp/file/
$FILENAME=tstpre-$(date +%Y%m%d-%H%M%S).np
cp "//'TEST1.PR.BAS'"  $FILENAME
chmod 660 $FILENAME

sftp [all sftp options go here] <<ENDOFSFTPCMDS && rm $FILENAME
bin
cd C:\SFTP
mput $FILNAME
ENDOFSFTPCMDS


Gil or John will kindly correct my UNIX scripting mistakes, I hope
--
Peter Hunkeler



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to