Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: General Schvantzkoph Newsgroups: comp.os.linux.misc Subject: Re: Need help running mplayer in the background Date: 20 May 2011 11:46:46 GMT Lines: 39 Message-ID: <93n2l5F2nvU3@mid.individual.net> References: <93gr48Fjo7U2@mid.individual.net> <93lvc6F2nvU2@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net lI14hfpCAzPLPMxFCc9PwgHGBZFppMDEBLB9uD9BBze4HhOl5i Cancel-Lock: sha1:E6bGd6o88Ubn2fOjq8siSlSKiD8= User-Agent: Pan/0.133 (House of Butterflies) Xref: x330-a1.tempe.blueboxinc.net comp.os.linux.misc:1186 > One of the most frequent problems when an attempt to run something from > cron fails while the regular command does seem to work is due to the > fact that cron does not source your environment and only works with a > very minimal $PATH. > > Try putting the full path to the executable in your crontab and see > whether it makes a difference. That's not it. I added the path to the script #!/bin/csh -f set path=(/usr/local/bin /usr/local/sbin /usr/bin /sbin /usr/sbin /bin / usr/X11R6/bin) set DAY=`date +%B_%d_%Y_%H_%M` setsid mplayer -quiet -slave -input default-bindings:file=/dev/null:conf=/ dev/null -prefer-ipv4 -nolirc -dumpstream http://2783.live.streamtheworld.com:443/WLSAM_SC -ac mp3lacm -dumpfile / home/foobar/s_drive/mp3/stream/bob_${DAY}.mp3 Here is the log file, MPlayer SVN-r31628-4.4.4 (C) 2000-2010 MPlayer Team Playing http://2783.live.streamtheworld.com:443/WLSAM_SC. Resolving 2783.live.streamtheworld.com for AF_INET... Connecting to server 2783.live.streamtheworld.com[208.80.52.138]: 443... Website: http://www.wlsam.com Bitrate: 48kbit/s Cache size set to 320 KBytes ICY Info: StreamTitle=''; MPlayer interrupted by signal 15 in module: dumpstream Core dumped ;) Exiting... (End of file)