One of my clients has a connection to an Unix environment where he starts some applications wich he uses in a Windows environment.
There is also a directory wich we can access by use a NFSclient, but after 2 days we have to reboot the server, to get the connection up and running again.
There is an other option, wich is downloading the files to a local directory by using FTP.
Now i am looking for a way to download the files and i have the following:
cd <application name>
This works when i run it, but the files are still on the remote FTP location.
What i would like to do is putting these files in the Remote FTP directory ARCHIVE for an example.
I have found a sample code on a unix / linux form
# change local directory
#collect file names
ftp -ni ftp.abccompany.com <<EOF
user [user] [password]
mls W945*.* list.txt
# create ftp action list
echo >>todo.lst user [user] [password]
while read N
echo >>todo.lst cd /OUT
echo >>todo.lst get $N
echo >>todo.lst rename $N ARCHIVE/$N
echo >>todo.lst quit
# ftp transfer process
ftp -nv ftp.abccompany.com <todo.lst
But these commands doesn't work.
Can someone help me to get this working?