LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-10-2008, 12:24 PM   #1
RedOctober45
Member
 
Registered: Aug 2007
Distribution: OFFICE: Solaris, RedHawk
Posts: 65

Rep: Reputation: 15
how to supress terminal output?


Hey guys!

Ok, so I created a very simple ftp bash script to ftp into QNX machine, grab a file and then exit. It works great, however, I want to suppress the response(s) the FTP command sends back to the terminal (stdout), or even better, replace it with my own such as "Retrieving file..." or something of the sort.

Any suggestions/help?

Thanks a lot!
 
Old 01-10-2008, 12:32 PM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Simple redirection can remove the messages sent to STDOUT and STERR, as so: "./script.sh 2>&1 > /dev/null"

This runs the script, makes sure that STERR is pointed to STDOUT, and that all output is filed into /dev/null, where it will never see the light of day.

Hope that helps!
 
Old 01-11-2008, 09:59 AM   #3
RedOctober45
Member
 
Registered: Aug 2007
Distribution: OFFICE: Solaris, RedHawk
Posts: 65

Original Poster
Rep: Reputation: 15
Yep! Thank you!
 
  


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
Supress kernel output AP81 Linux - General 5 02-19-2007 03:16 AM
Redirect terminal output to file AND terminal shan Linux - General 3 09-29-2006 09:36 AM
Bash: Supress newlines with \c - Doesn't work stefanlasiewski Programming 5 07-26-2005 02:17 PM
how to redirect the output of a terminal? cpukiller Linux - Networking 5 11-10-2004 08:07 AM
Kernel option to supress framebuffer logo? bender647 Linux - Software 1 06-22-2003 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:44 PM.

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