Export Command

Hello All,

I am transferring a file from one server to another server.
File name is stored as Wip_DD-MM-YY .i.e if we run the program today the file is stored as Wip_18-FEB-09.txt.
This file i need to transfer.

My question is how do we assign the this filename to a variable.

i treid in the following way

export MYFILE=wip_`date +%d-%b-%y.txt`

ftp -v -n testone << EOF
user user_name pass_Word
cd /D01/tl/Test/outbound
ascii
get $MYFILE
bye
EOF

But i am getting error as follows Wip_18-Feb-09.txt: is not an identifier.
Also i would like get the month name as FEB not as feb.

Please let me know

Kind Regards,
Praveen

I couldn't understand ur problem exactly but as i unserstand it is.........
use this:
export MYFILE=`date +%d-%m-%y`

and

echo wip_$MYFILE

Hope! it wll work.
and reply to this foram if it works

Try changing this:

export MYFILE=wip_`date +%d-%b-%y.txt`

to:

MYFILE=wip_`date +%d-%b-%y.txt` export MYFILE

if [ `hostname` = <server> ]
then
echo `date`
echo Sending file to <another server>
ff="wep_`date +%Y%m%d`"
echo "
user UN Passwd
get $ff
quit
" | ftp -n <server name>
fi

should you use Export command ....let me know......