glow_worm
01-15-2003, 12:58 AM
OK..heres the deal ..
script:
#!/bin/sh
PIDS=$(/bin/more /tmp/ices.pid)
ARTIST=$( /bin/cat -n /tmp/ices.cue.$PIDS | /bin/grep "^ 7" | /bin/cut -f2- | /bin/awk '{print $0}' )
TITLE=$( /usr/bin/tail -n 1 /tmp/ices.cue.$PIDS )
/bin/rm -rf /home/off/egg6/scripts/shout.out
/bin/echo whooradio shoutcast @ http://www.owenmeany.com:8080 is playing: $ARTIST - $TITLE > /home/off/egg6/scripts/shout.out
--
It works fine from a prompt. The permissions are correct. When run from a crontab the entry echo'd to /home/off/egg6/scripts/shout.out is:
hooradio shoutcast @ http://www.owenmeany.com:8080 is playing: - ==> /tmp/ices.pid <== 17217
I have tried setting a path variable within the script. doesnt work, you can see I am already using full paths for the bins.. I am at a loss, any ideas?
tia, glow_worm
PS: I have tried running the script in roots crontab, doesnt work, and Ive tried a regualr user..it doesnt matter..same output.
script:
#!/bin/sh
PIDS=$(/bin/more /tmp/ices.pid)
ARTIST=$( /bin/cat -n /tmp/ices.cue.$PIDS | /bin/grep "^ 7" | /bin/cut -f2- | /bin/awk '{print $0}' )
TITLE=$( /usr/bin/tail -n 1 /tmp/ices.cue.$PIDS )
/bin/rm -rf /home/off/egg6/scripts/shout.out
/bin/echo whooradio shoutcast @ http://www.owenmeany.com:8080 is playing: $ARTIST - $TITLE > /home/off/egg6/scripts/shout.out
--
It works fine from a prompt. The permissions are correct. When run from a crontab the entry echo'd to /home/off/egg6/scripts/shout.out is:
hooradio shoutcast @ http://www.owenmeany.com:8080 is playing: - ==> /tmp/ices.pid <== 17217
I have tried setting a path variable within the script. doesnt work, you can see I am already using full paths for the bins.. I am at a loss, any ideas?
tia, glow_worm
PS: I have tried running the script in roots crontab, doesnt work, and Ive tried a regualr user..it doesnt matter..same output.