The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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 09:50 AM
How to prevent /dev/rmt* re-assignments jwholey AIX 5 03-30-2008 09:26 AM
Prevent ftp usage NineInch AIX 1 03-04-2006 12:16 AM
how to prevent deadlock on this... yimab High Level Programming 5 10-11-2005 08:57 PM
window 2000 professional not pinging my window 98 system. kayode Windows & DOS: Issues & Discussions 10 11-13-2003 03:12 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-20-2008
katrvu katrvu is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 25
Unhappy Prevent output to window

hello,
Any suggestion on how to prevent Standard output and Standard Error to window?
  #2 (permalink)  
Old 02-20-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
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?
  #3 (permalink)  
Old 02-20-2008
HPAVC's Avatar
HPAVC HPAVC is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 106
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.
  #4 (permalink)  
Old 02-20-2008
katrvu katrvu is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 25
>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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0