KCron and Streamripper
BBBB
ubuntulist at thingbuilder.com
Thu Oct 16 15:08:22 UTC 2008
Mark Haney wrote:
> bbbb wrote:
>
>> Mark Haney wrote:
>>
>>> bbbb wrote:
>>>
>>>
>>>> I am trying to use KCron to run a script that records a 2 hour radio
>>>> show weekly.
>>>> When I run the script without KCron it works perfectly.
>>>> When I choose "Run Now" in KCron it works perfectly.
>>>> When it runs as scheduled, it runs only for one minute and then stops.
>>>>
>>>> Where do I start looking to solve this problem?
>>>> My searches have been fruitless.
>>>>
>>>> thanks for a great list,
>>>> Bradley
>>>>
>>>>
>>>>
>>> Cron usually logs things to /var/log/cron or /var/log/messages. That's
>>> a good place to start. If you can post any related output from there,
>>> we might be able to figure out what the issue is.
>>>
>>> Also, a copy of the script you're running, or at least the cron job
>>> you're running would be helpful too.
>>>
>>>
>> Thanks.
>> Did not see /var/log/cron.
>> /var/log/messages only showed a restart.
>>
>> my script:
>>
>> #
>> #ksfr
>> #
>> clear
>> #
>> streamripper http://pubint.ic.llnwd.net/stream/pubint_ksfr -l 7205 -t
>>
>>
>> My crontab:
>>
>> 0 0 * * 4 /home/bb/KSFR/ksfr_script
>>
>> I tried setting the crontab to use a range but it gave me a file every
>> minute instead of one long file.
>>
>> Bradley
>>
>>
>>
>>
>
> When you run the job manually, do you normally get some kind of output
> to the console? (besides the ripped stream, obviously?)
>
> At the beginning of the script I would add #!/bin/bash (or insert your
> choice of shell here).
>
> It also might not be a bad idea to make the cron line look like this:
>
> 0 0 * * 4 /home/bb/KSFR/ksfr_script >> /home/bb/KSFR/ksfr.log > 2>&1
>
> (Watch for line breaks, that should all be one line)
>
> to dump the potential error to a log file, since it looks like the
> system is having a problem but not logging it to syslog.
>
> Then run it and see what output may be in that log file.
>
Thanks,
I added #!/bin/bash to the top of the script.
I put the additional text on the command and could not get the script to
run.
I removed it and it ran (for only one minute).
Bradley
More information about the ubuntu-users
mailing list