at -f and shell script
Thanks to all in advance for any help and advice.
I capture videos using this script: if [ -z "$1" ]; then echo "Usage: time outputfilenames" exit 1 fi mkdir `date +%Y-%d-%m-%H:%M` && cd `date +%Y-%d-%m-%H:%M` streamer -n ntsc -b 24 -t $1 -s 480x480 -r 29.970 -R 48000 -o stream0.avi -f mjpeg -j 95 -F stereo && mencoder -idx stream0.avi -ovc copy -oac copy -o $2 && rm stream0.avi clear exit 0 I tried useing the at command with this script and it did not work. error messages were "garbled time" or "broken token" In this script $1= length of capture and $2 is final file name. I have in the past captured with the at command but everything had to be setup first, I could not add length or file name on the fly. Is there a way to use this with the at command? thanks in advance PClinuxOS V.93 AthlonXP 2400 1GB DDR 2100 |
I tried useing the at command with this script and it did not work. error messages were "garbled time" or "broken token"
The script will work. Error messages like "garbled time" just means you didn't tell "at" the right time format to run the script like: at -f scriptname now at -f scriptname now + 10 min at -f scriptname 23:01 at -f scriptname tomorrow at -f scriptname 23:01 10.08.2006 |
I guess I didn't make myself clear, yes I know all those commands and They work fine, but what about a script that needs input parameters. This doesn't work
./ at -f film_cap 20:00 1:45:00 the_sixth_sense 1:45:00 being the length of time I want to capture,the_sixth_sense=being the file name of the output. |
what about a script that needs input parameters.
Next time if you ask something phrase it like a question. Here's how: Code:
#!/bin/sh |
All times are GMT -5. The time now is 05:20 AM. |