All pastes #967394 Raw Edit

alesan

public text v1 · immutable
·published 2008-04-02 11:54 UTC
rendered paste body
#!/bin/bash

cd /home/cornizzolo/webcam
/bin/rm -rf fifo work
/usr/bin/mkfifo fifo
/bin/chown cornizzolo fifo
/bin/mkdir work
while true
do
while read file
do
        /usr/bin/convert -size "640x480" $file work/$file
        wait
        /usr/bin/curl -F uploadedfile=@work/$file http://url/webcamup.php 1>/dev/null 2>&1 &
done <fifo
done