Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Riches Newsgroups: comp.os.linux.misc Subject: Re: Need help running mplayer in the background Date: 20 May 2011 03:43:58 GMT Organization: none-at-all Lines: 33 Message-ID: References: <93gr48Fjo7U2@mid.individual.net> <93i0g6Fn0oU1@mid.individual.net> <93ia6qFn0oU2@mid.individual.net> <93l326F2nvU1@mid.individual.net> Reply-To: spamtrap42@verizon.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net l0qmJCOhdxUyn2LDlRePkAbBrBDommegetiAMnfeFf+hZsxy4j Cancel-Lock: sha1:P/vnlQg/275sA5dhoYcAmYKlQuU= User-Agent: slrn/0.9.9p1 (Linux) Xref: x330-a1.tempe.blueboxinc.net comp.os.linux.misc:1181 On 2011-05-19, General Schvantzkoph wrote: > On Thu, 19 May 2011 10:05:54 -0400, Bill Marcum wrote: > >> On 2011-05-18, General Schvantzkoph wrote: >>> >>> I've added a line to my script that reschedules itself at now + 1 week >>> which takes care or the repeat. However if there is a standard way of >>> specifying a repeated task I'd like to know it. >> >> With at the only way to repeat a task is by rescheduling it. But it's >> curious that your command doesn't work with cron. Does the command line >> contain a % sign, or does it depend on environment variables? > This is the script I'm calling, the only env variable that I'm calling is > set in the script > > #!/bin/csh -f > set DAY=`date +%B_%d_%Y_%H_%M` > setsid mplayer -prefer-ipv4 -nolirc -dumpstream > http://2783.live.streamtheworld.com:443/WLSAM_SC -ac mp3lacm -dumpfile / > home/foobar/s_drive/mp3/stream/bob_${DAY}.mp3 As an experiment, you could make a wrapper script that just calls this one but puts stdout and stderr from this script into a log file. You might also want to direct stdin from /dev/null. That may reveal some error message that's happening when this script is run from cron. (It's good to see somebody else uses a shell with decent syntax.) -- Robert Riches spamtrap42@jacob21819.net (Yes, that is one of my email addresses.)