The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Compare 2 files and output result in pop up window hongsh UNIX for Dummies Questions & Answers 2 05-23-2008 06:50 AM
How to prevent /dev/rmt* re-assignments jwholey AIX 5 03-30-2008 06:26 AM
Prevent ftp usage NineInch AIX 1 03-03-2006 08:16 PM
how to prevent deadlock on this... yimab High Level Programming 5 10-11-2005 05:57 PM
window 2000 professional not pinging my window 98 system. kayode Windows & DOS: Issues & Discussions 10 11-12-2003 11:12 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-20-2008
Registered User
 

Join Date: Feb 2008
Posts: 25
Stumble this Post!
Unhappy Prevent output to window

hello,
Any suggestion on how to prevent Standard output and Standard Error to window?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-20-2008
joeyg's Avatar
premier etoile de match
 

Join Date: Dec 2007
Location: Home of world champion Boston Celtics
Posts: 599
Stumble this Post!
redirect

typically done with a redirect to /dev/null

for errors, something like:

Code:
ls -a 2>/dev/null
would show all files while not displaying file access errors

where would you want standard output to go?
why do something if you want to suppress its output?
Reply With Quote
  #3 (permalink)  
Old 02-20-2008
HPAVC's Avatar
Registered User
 

Join Date: Feb 2008
Posts: 105
Stumble this Post!
Quote:
Originally Posted by katrvu View Post
hello,
Any suggestion on how to prevent Standard output and Standard Error to window?
Depends on what shell your using (bash, csh, etc) on the syntax of the redirection of the stdout, stderr to /dev/null or a file.

But the man page for the shell or google will help.
Reply With Quote
  #4 (permalink)  
Old 02-20-2008
Registered User
 

Join Date: Feb 2008
Posts: 25
Stumble this Post!
>where would you want standard output to go?
>why do something if you want to suppress its output?

because I want the test output to be in a better format and also don't want to change the file.
I think I have an idea what I can try now.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:48 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0