Originally posted by: mikezang
Thanks for your reply.
But my question is little complex.
I telnet to a.b.c.n, then I have to go into a specific folder with today date, then do ftp and get a file, I did it as below, where do I have to modify?
In file if.csh
#!/usr/bin
echo "cd /TAMA_arch/`date +%Y%m%d`_IF" > if1.csh
echo "ftp < ftp.txt" >> if1.csh
chmod +x if1.csh
echo "ftp a.b.c.d" > ftp.txt
echo "user xxx" >> ftp.txt
echo "pw" >> ftp.txt
echo "get Data_file_`date +%Y%m%d`.rar" >> ftp.txt
echo "bye" >> ftp.txt
./if1.csh
rm Data_file_`date +%Y%m%d`.rar
#AIX-Forum