On 22/08/14 22:53, Karl E. Jorgensen wrote:
> Hi
>
> On Fri, Aug 22, 2014 at 11:23:37AM +0200, Tony van der Hoff wrote:
>> Hi,
>>
>> Running up-to-date Wheezy.
>>
>> I have a script, simplified like this:
>>
>> -
>> #!/bin/bash
>> DEBUG=1
>>
>> OUT=/dev/null
>>
>> if [
On 22/08/14 18:02, Sven Hartge wrote:
> Tony van der Hoff wrote:
>> On 22/08/14 15:57, Sven Hartge wrote:
>>> Tony van der Hoff wrote:
>>>
Cron task is invoked from a simple crontab entry:
# /home/tony/crontab -- crontab for user tony
MAILTO=t...@vanderhoff.org
SHELL=/bin/sh
Hi
On Fri, Aug 22, 2014 at 11:23:37AM +0200, Tony van der Hoff wrote:
> Hi,
>
> Running up-to-date Wheezy.
>
> I have a script, simplified like this:
>
> -
> #!/bin/bash
> DEBUG=1
>
> OUT=/dev/null
>
> if [ $DEBUG -ne 0 ]; then
> OUT=/dev/stdout
> fi
>
> ech
Tony van der Hoff wrote:
> On 22/08/14 15:57, Sven Hartge wrote:
>> Tony van der Hoff wrote:
>>
>>> Cron task is invoked from a simple crontab entry:
>>> # /home/tony/crontab -- crontab for user tony
>>> MAILTO=t...@vanderhoff.org
>>> SHELL=/bin/sh
>>>
>>> * * * * * /home/tony/scripts/te
sorry - wrong button :(
Original Message
Subject: Re: writing to /dev/stdout fails in cron script
Date: Fri, 22 Aug 2014 16:58:20 +0200
From: Tony van der Hoff
To: Sven Hartge
On 22/08/14 15:57, Sven Hartge wrote:
> Tony van der Hoff wrote:
>
>> Cron task is
Tony van der Hoff wrote:
> Cron task is invoked from a simple crontab entry:
> # /home/tony/crontab -- crontab for user tony
> MAILTO=t...@vanderhoff.org
> SHELL=/bin/sh
>
> * * * * * /home/tony/scripts/test
> tony@tony-fr:~$ ls -al /dev/stdout
> lrwxrwxrwx 1 root root 15 Aug 21 17:30 /d
On 22/08/14 11:35, Sven Hartge wrote:
> Tony van der Hoff wrote:
>
>> Running up-to-date Wheezy.
>
>> I have a script, simplified like this:
>
>> -
>> #!/bin/bash
>> DEBUG=1
>
>> OUT=/dev/null
>
>> if [ $DEBUG -ne 0 ]; then
>>OUT=/dev/stdout
>> fi
>
>> ech
Tony van der Hoff wrote:
> Running up-to-date Wheezy.
> I have a script, simplified like this:
> -
> #!/bin/bash
> DEBUG=1
> OUT=/dev/null
> if [ $DEBUG -ne 0 ]; then
>OUT=/dev/stdout
> fi
> echo hello > $OUT
> -
> This works f
Maybe, because crond is running as root, try put this lines in your script
ls -l /proc/self/fd/1
ls -l /dev/stdout
please, you can tell us, how you scheduled the script in crond?
Thanks
2014-08-22 11:23 GMT+02:00 Tony van der Hoff :
> Hi,
>
> Running up-to-date Wheezy.
>
> I have a script, sim
Hi,
Running up-to-date Wheezy.
I have a script, simplified like this:
-
#!/bin/bash
DEBUG=1
OUT=/dev/null
if [ $DEBUG -ne 0 ]; then
OUT=/dev/stdout
fi
echo hello > $OUT
-
This works fine when invoked from the command line, but w
10 matches
Mail list logo