Hi Jarkko.!
 
in your script try
 
/usr/bin/ftp -n 123.123.123.123 <<END_SCRIPT
 
or where or ftp is located, then in schold work fine

BYe
     Harald
 
http://EmptySoft.net
http://www.BoulderHoelle.at
---
Wie viele Dinge es doch gibt, die ich nicht brauche! (Sokrates)
----- Original Message -----
From: Jarkko Nieminen
To: Motion-user@lists.sourceforge.net
Sent: Friday, October 20, 2006 6:44 PM
Subject: [Motion-user] Problem with ftp upload

I am trying to make motion upload every picture it takes.
I have the following line in my motion.conf
on_picture_save = /root/ftpput.sh %f

and the ftpput.sh script looks like this
#!/bin/sh
ftp -n 123.123.123.123 <<END_SCRIPT
quote USER valvonta
quote PASS valvonta
put $ 1
quit
END_SCRIPT
exit 0


The script works fine if I run it separately but with motion.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user
http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome