[LUGOS] stdout in stderr iz crona v mail

Primož Gabrijelčič primoz at gabrijelcic.org
Wed Dec 24 11:40:08 CET 2003


> 0 10 * * 1-5 2>/dev/null ukaz | mail user1 -c user2 -c root
> ...
> Kako bi moral sestaviti zadevo, da bi dobil v posti oboje?

Na BSD dela:

0 10 * * 1-5 2>/dev/null 2>&1 ukaz | mail user1 -c user2 -c root

Zelo verjetno ima Linux enako sintakso za preusmeritve.

Pozdrav,
    Gp

    WinGpT: Earth is blue, there's nothing I can do.
OpenBSD SI: http://obsd.17slon.org, http://obsd.17slon.org/list




More information about the lugos-list mailing list