LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2004, 12:11 PM   #1
linuxprogrammer
LQ Newbie
 
Registered: Jul 2004
Posts: 26

Rep: Reputation: 15
turning echo off


how can i turn off the echo, so that while my program is going on, the terminal is not disturbed by information of turning on & off of modes etc.
 
Old 07-24-2004, 02:37 PM   #2
tuxfood
Member
 
Registered: Aug 2003
Location: kerala , India
Distribution: RH9 , FC1 ,
Posts: 141

Rep: Reputation: 15
hi..

do u mean the echoing as in displaying what u enter on the screen itself?

in that case use stty -echo (see info stty 4 details)
 
Old 07-24-2004, 03:13 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
If you mean redirecting program output then just start the program with:
programname 2> /dev/null
or
programname > /dev/null

The first one redirects error output, the second redirects normal output. Both direct it to the null device (i.e. you don't see it).
 
Old 07-24-2004, 03:15 PM   #4
Ebel
Member
 
Registered: May 2004
Distribution: Slackware 10
Posts: 63

Rep: Reputation: 15
If you want to suppress all output of a programme called some_programme, then just enter "some_programme > /dev/null". All the output of some_programme that would normally go to the console, will now be discarded. Only error messages will be displayed. If you want to discard all messages including error messages then just enter "some_programme 1> /dev/null 2>&1" You won't see anything then. For more info on this kinda redirection (as it's called), then you should read RUTE
 
  


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
Kphone echo (echo echo) scabies Linux - Software 0 10-18-2004 03:59 PM
echo $? amaze Linux - General 5 08-15-2003 06:36 AM
echo phoeniXflame Linux - Software 3 03-02-2003 09:23 PM
Echo /devPrinting doesn't work, echo /usb/lp0 works, Testpage works, Printing doesn't Hegemon Linux - General 3 08-15-2002 02:13 PM
Echo linux_freak Linux - General 1 06-05-2001 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration