vlc interprets commands differently when executed by cron
Posted: 03 Dec 2009 20:55
Hello,
I have a problem with a little bit of command line execution of vlc in Ubuntu. I laid out my problem in large in the ubuntu forums (http://ubuntuforums.org/showthread.php?t=1344865). Nobody seems to see the problem or where I went wrong.
In Short:
I have a script that executes vlc to record a piece of webradio and be closed after a certain time (here, 5 hours).
If I execute the script from the terminal, it runs perfectly and does what it is supposed to do.
If I run the script from the gnome gui for cron (scheduled tasks manager, I guess - German translation so I do not know the universal name), vlc tries to open "--sout" and "file/asf:/home/maweki/shellscripts/ken.asf" as stream (which, of course, fails) and does not (you guessed it) record.
I really do not have a clue whether the problem lies with cron, it's gui, vlc or inherently with the script which would make this expected behaviour.
Please take a look at the ubuntuforums-post. I posted the terminal output and the whole script there. I'm really clueless about this and I cannot really believe that this would be a problem with vlc (as it should not interpret these commands differently, should it?) but I guessed I should ask you people.
Greetings
maweki
I have a problem with a little bit of command line execution of vlc in Ubuntu. I laid out my problem in large in the ubuntu forums (http://ubuntuforums.org/showthread.php?t=1344865). Nobody seems to see the problem or where I went wrong.
In Short:
I have a script that executes vlc to record a piece of webradio and be closed after a certain time (here, 5 hours).
Code: Select all
vlc http://www.fritz.de/live.wax --sout file/asf:/home/maweki/shellscripts/ken.asf &
If I run the script from the gnome gui for cron (scheduled tasks manager, I guess - German translation so I do not know the universal name), vlc tries to open "--sout" and "file/asf:/home/maweki/shellscripts/ken.asf" as stream (which, of course, fails) and does not (you guessed it) record.
I really do not have a clue whether the problem lies with cron, it's gui, vlc or inherently with the script which would make this expected behaviour.
Please take a look at the ubuntuforums-post. I posted the terminal output and the whole script there. I'm really clueless about this and I cannot really believe that this would be a problem with vlc (as it should not interpret these commands differently, should it?) but I guessed I should ask you people.
Greetings
maweki