LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 09: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, 09:32 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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, 11:58 AM   #3
ricardo85xeii
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks

it is just what i want.

thx again
 
  


Reply



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 04:45 AM
Shell Scripting - use the output of a command as an argument for another timgiffney Programming 6 04-17-2006 11:13 AM
shell scipting: append output of a command to a variable jonhewer Linux - Newbie 10 08-24-2005 05:42 AM
series-Write a single shell command to display the following output ricki Programming 2 07-31-2005 03:53 PM
Assigning the output of one command to a variable (shell) guru_stew Programming 5 08-03-2003 06:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:23 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration