Hi folks,
I'd like to send the "Error Output" of a command as mail.
So far I've created the following line:
./command 2> mail -s "The following error has occured" root
But it's not quite working right now ...
I also tried putting everything behind 2> into the following:
" " ' ' `` ´´
But nothing worked.
Any ideas how this might be accomplished ?
Thanks in advance !
Regards
Thomas
I'd like to send the "Error Output" of a command as mail.
So far I've created the following line:
./command 2> mail -s "The following error has occured" root
But it's not quite working right now ...
I also tried putting everything behind 2> into the following:
" " ' ' `` ´´
But nothing worked.
Any ideas how this might be accomplished ?
Thanks in advance !
Regards
Thomas