Quote:
Originally posted by smus
Code:
#!/bin/bash/
ftp -n << EOT
open XXX.XXX.XXX.XXX
user user_name password
bin
get batch_upload.sh
get batch_rename.sh
bye
EOT
chmod 777 batch_upload.sh
chmod 777 batch_rename.sh
bash /usr/siglo/offline/batch_upload.sh
bash /usr/siglo/offline/batch_rename.sh
rm -f /usr/siglo/offline/batch_upload.sh
rm -f /usr/siglo/offline/batch_rename.sh
|
Try adding this line before the ftp run:
Code:
/usr/siglo/offline/
Also, to see what the script actually does, insert this line at the very beginning:
And post us the output from the cronjob. That information will help us helping you.
Greetings,
Benjamin