Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Programming in Linux _ find and ftp problem

Posted by: art1976 Feb 15 2008, 12:33 PM

i need to find and send via ftp some files....

its my script:

FILESLIST=`find /storage/pgsql/data/pg_log -ls -name '*.log' -mmin -60000`

echo "
user username password
bin
prompt
mput $FILESLIST
dir
quit" | ftp -nv 192.168.0.10

finally script not working.... and i dont know why....
can somebody help me please? smile.gif

Regards art1976

Posted by: michaelk Feb 15 2008, 03:36 PM

Is this your server where you could use ssh instead of ftp?
Checkout expect for dealing with entering stuff like usernames and passwords.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)