I have a script (tape) which records tv from the tv tuner card using Mencoder. I saved this script in /bin and can execute it from anywhere (so, it is added to my $PATH). Its format is: tape 12 test 00:02:00 (this means recording channel 12 during 2 minutes and calling the file test). I also made the script executable.
In Ubuntu 7.04 and in Slackware it works great if I added it to cron via crontab -e or kcron. But, when I do this in Mint or Ubuntu 8.04, nothing happens. It just doesn't record anything and I don't understand why. If, instead of adding the task to cron, I run the script from the command line, it works ok. So, I am a bit confused!
This is the way the script is written to cron when using kcron:
- Code: Select all
0 12 13 7 7 tape 12 tvprogram 00:02:00
This means. Record at 12pm day 13 (today - Sunday). Execute the script tape which is in /bin folder. Do it during 2 minutes. Call the file tvprogram.
Any help will be appreciated.