Hi,
I am writing a ftp script to transfer PX020625.001 files there are about 42 files altogther I have got the script to work ok heres the line for the ftp
today=PX020625*
echo "lcd $aw_leeds \nprompt\ncd /$pheonix_leeds \nmget $today\n" | ftp -v ho2kap01 >> $logfile
but what I need to achieve is to get the variable i have setup to automatically change day as this ftp takes place everyday and there is no archieving done on the server where I attending to pick up these files so tommorow I will have to pick up PX020626* i have tried the following varible but it has not worked does anyone have any ideas.
today=PX`%y%m%d`* but this does not work.
thanx in advance
Harpal
I am writing a ftp script to transfer PX020625.001 files there are about 42 files altogther I have got the script to work ok heres the line for the ftp
today=PX020625*
echo "lcd $aw_leeds \nprompt\ncd /$pheonix_leeds \nmget $today\n" | ftp -v ho2kap01 >> $logfile
but what I need to achieve is to get the variable i have setup to automatically change day as this ftp takes place everyday and there is no archieving done on the server where I attending to pick up these files so tommorow I will have to pick up PX020626* i have tried the following varible but it has not worked does anyone have any ideas.
today=PX`%y%m%d`* but this does not work.
thanx in advance
Harpal