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 when called as a
cron task, same user, it fails with
/home/tony/scripts/test: line 10: /dev/stdout: Permission denied

Any suggestions on how to fix this, please?
-- 
Tony van der Hoff  | mailto:t...@vanderhoff.org
Ariège, France     |


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/53f70c19.2020...@vanderhoff.org

Reply via email to