My Profile

Keep Up to Date:
Blog RSS
Blog
Forum RSS
Forum
Post New Topic Post Reply
Posted 8 Months, 3 Weeks ago
SorroW
Senior Boarder
Posts: 70
graphgraph
User Offline
 
I'm hoping someone here can help me out...

I've written this script that, when launched from the command line, will change the channel on my tuner card and record for a set period of time. It takes the first argument as the channel, the second argument as the time length, the third as the time unit (minutes or seconds), and the 4th (if supplied) as the file name. I use streamer (from the xawtv package) to record and v4lctl (also from the xawtv package) to change the channel.

When launched from the command line, it records flawlessly. When I launch the script from cron, it refuses to change the channel. It'll record whatever channel I was last on.

Does anyone have any ideas why this is happening?
The administrator has disabled public write access.
Posted 8 Months, 3 Weeks ago
soumitra
Senior Boarder
Posts: 63
graphgraph
User Offline
 
One possibility is that cron, running as root, doesn't find the .xawtv file. Is there a .xawtv file in /root? If not, you could probably try copying your $HOME/.xawtv file over there and see if that helps.
The administrator has disabled public write access.
Posted 8 Months, 3 Weeks ago
Bhah_Humbug
Senior Boarder
Posts: 54
graphgraph
User Offline
 
You have the right basic idea... I had (stupidly) set HOME to be something other than my homedir It's working fine now, though.
The administrator has disabled public write access.
 
Copyright © 2006 - Nov 2008 My Linux Gang