Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mplayer via cron
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
stream
Guru
Guru


Joined: 04 Jan 2003
Posts: 401

PostPosted: Fri Aug 26, 2005 9:12 pm    Post subject: mplayer via cron Reply with quote

hallo,

ich versuche mittels eines crons mplayer jeden freitag um 21:30 zu starten, um einen stream aufzueichen.

dazu habe ich folgende einträge gesetzt:
Quote:
crontab -l
30 21 * * 5 mplayer http://listen.fm4.amd.co.at:31337/fm4-mq.ogg -dumpstream -dumpfile /root/L.`date +%m%d%H%M`.ogg &
0 6 * * 6 killall mplayer


um 21:30 startet dann auch mplayer, zumindest laut log.
Quote:
Aug 26 21:30:01 host cron[700]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Aug 26 21:30:01 host cron[702]: (root) CMD (mplayer http://listen.fm4.amd.co.at:31337/fm4-mq.ogg -dumpstream -dumpfile /root/L.`date +)


wenn ich mir dann aber die laufenden prozesse anschaue, läuft kein mplayer. die datei vom dumpstream wird auch nicht erstellt.

(wenn ich den befehl mplayer http.... direkt über die console ausführe funktioniert alles ohne probleme)

hat jemand eine idee woran das liegen kann? bzw welche möglichkeiten ich noch habe um das problem näher einzugrenzen.
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Fri Aug 26, 2005 11:05 pm    Post subject: Reply with quote

Nur so eine Vermutung, aber im log scheint nicht den ganzen Befehl ausgeführt zu werden. Hast du vielleicht versucht, mplayer ....... in ein Skript zu schreiben (z.b. /root/aufnahme.mplayer oder so) und statt den langen Befehl nur /root/aufnahme.mplayer auszuführen?
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
lolli78
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 162
Location: Europe

PostPosted: Sun Aug 28, 2005 12:47 pm    Post subject: Re: mplayer via cron Reply with quote

stream wrote:

30 21 * * 5 mplayer http://listen.fm4.amd.co.at:31337/fm4-mq.ogg -dumpstream -dumpfile /root/L.`date +%m%d%H%M`.ogg &


der tipp mit dem bash-script ist schonmal gut, ich würde zusätzlich noch von dem "&"-zeichen am ende verzichten. cron startet für jeden befehl sowieso eine eigene shell, die deinen befehl ausführt.

lorenz
_________________
frag' doch deinadmin.de
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum