LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-17-2007, 10:08 AM   #1
ricardo85xeii
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
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
 
Old 10-17-2007, 10:32 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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!
 
Old 10-17-2007, 12:58 PM   #3
ricardo85xeii
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks

it is just what i want.

thx again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Write output or command to variable (shell) kernel_geek Programming 9 03-12-2007 05:45 AM
Shell Scripting - use the output of a command as an argument for another timgiffney Programming 6 04-17-2006 12:13 PM
shell scipting: append output of a command to a variable jonhewer Linux - Newbie 10 08-24-2005 06:42 AM
series-Write a single shell command to display the following output ricki Programming 2 07-31-2005 04:53 PM
Assigning the output of one command to a variable (shell) guru_stew Programming 5 08-03-2003 07:12 PM


All times are GMT -5. The time now is 04:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration