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
quit" | ftp -nv

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 (
© Invision Power Services (