Help - Search - Members - Calendar
Full Version: find and ftp problem
Linuxhelp > Support > Programming in Linux
art1976
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
michaelk
Is this your server where you could use ssh instead of ftp?
Checkout expect for dealing with entering stuff like usernames and passwords.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.