Using recycled bits, WIll said:
% I am trying to write a shell script that will move a file, create a new
% file, and get a file with ftp.
% 
% Is thier any way that my shell script can send comands to the ftp program or
% is thier a way around using ftp.

--- begin ---
#!/bin/bash
mv file1 otherfile
touch file2
export USER=somename
export PASS=password
ftp -i -n << EOF
user $USER $PASS
binary
get /full/path/to/file
EOF
--- end ---

Should give you a start.

-- 
Kurt Wall
Informix on Linux FAQ - http://www.xmission.com/~kwall/iolfaq.html
Spanish Translation   - http://www.xmission.com/~kwall/iolfaqsp.html

Reply via email to