vlc interprets commands differently when executed by cron

*nix specific usage questions
maweki
New Cone
New Cone
Posts: 2
Joined: 03 Dec 2009 20:42

vlc interprets commands differently when executed by cron

Postby maweki » 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).

Code: Select all

vlc http://www.fritz.de/live.wax --sout file/asf:/home/maweki/shellscripts/ken.asf &
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

Rémi Denis-Courmont
Developer
Developer
Posts: 15328
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc interprets commands differently when executed by cron

Postby Rémi Denis-Courmont » 03 Dec 2009 21:51

That's a problem in the way the GNOME cron passes the command line arguments to VLC. Either you are using the wrong syntax, or it's a GNOME bug.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests