Hi,

On Mon, Jan 27, 2020 at 04:40:10PM +0100, Ralf Hildebrandt wrote:
> How can I easily redirect script stderr/stdout while in daemon mode?
> 
> I have a --auth-user-pass-verify script which (in some odd cases)
> exits with exit status 255 and I cannot fathom why.

At the top of the script

exec >>/tmp/myout.txt 2>&1

(a standalone "exec" without a command to run will redirect this shell
script's stdout/stderr)

gert
-- 
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             g...@greenie.muc.de

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to