Thanks to all who made suggestions. We are going to use MYDATE=`date +%Y%m%d` MYFILE="filename.${MYDATE}" or wget ftp::/host/`date '+%Y%m%d'` Thanks Again! Adam ________________________________ Sent: Friday, April 13, 2012 9:09:07 AM Subject: Automating our psftp get process Hi Everyone, We currently are using the get command from within our psftp connection to do the following: get filename.yyyymmdd eg. get filename.20120413 Does anyone have any examples or suggestions on how we could set the current date to the file name each day, so that we can grab the latest file without having to manually change the date first? Thanks, Adam _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Fri Apr 13 14:19:26 2012
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:19 EST