LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   shell command without output (https://www.linuxquestions.org/questions/programming-9/shell-command-without-output-592500/)

ricardo85xeii 10-17-2007 09:08 AM

shell command without output
 
Hi folks

I wanna to run a command but i do not wanna see any output at all

the command was:

at

"The at command is used to schedule commands to be executed once at a particular time in the future. "

well when the 'at' command run with no sintax error a message like this sho w on output:

job 11 at 2007-10-17 11:06


that what i do not want to see.

i just need to execute the "at" command and case the sintax was right thats the end, i do not wanna see any message.

thanks for reading :)

colucix 10-17-2007 09:32 AM

The at command displays stuff on the standard error (file descriptor 2) so you can simply redirect standard error to /dev/null, for example
Code:

at now + 1 minute 2> /dev/null
but you will not see neither the at prompt nor any error message!

ricardo85xeii 10-17-2007 11:58 AM

Thanks

it is just what i want.

thx again


All times are GMT -5. The time now is 11:28 PM.