Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-27-2012, 09:33 AM   #1
Registered: Jul 2012
Posts: 41

Rep: Reputation: Disabled
Stop display in console but should write in log file


I am running a custom installer and it is writing the log content to a log file.But also it is showing the execution steps in the console from where I run the run installer command runs. But I do not want to show log in console. How can I do that?

it is running .sh file which contains echo..statements etc.
please suggest.

thanks in advance.
Old 09-27-2012, 09:37 AM   #2
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
how about "piping" the output to /dev/null ? just of the top of my'll not have the output anymore, but since all is written in a log file anyway...
Old 09-27-2012, 09:42 AM   #3
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,825
Blog Entries: 1

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
Old 09-27-2012, 09:48 AM   #4
Senior Member
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,799

Rep: Reputation: 157Reputation: 157
You could also run it in another tty using openvt.

It depends on what you really want to do... If you just want to run the installer, but keep working on something else, you could simply switch to another tty, run the installer and switch back to resume work. If you have to wait for the output to finish what you want to do, you can "pipe" it to another tty (or as Thor_2.0 suggested, to a "null" tty)...

If you are working from a GUI, you can minimize that terminal, and open a new one...

This is really one of those things where there's no "right" answer, more a choice of style and approach.


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
Stop display in console but should write in log file cdhar Linux - Newbie 4 09-27-2012 10:45 AM
[SOLVED] BASH: Use SYSLOG to write log to new log file worm5252 Programming 2 08-23-2012 12:17 PM
After log roll, Postfix cannot write to log file, Ubuntu 8.04 mboudro Linux - Server 6 09-17-2010 04:10 AM
Can you write a script to display file name, Inode, and size of any file? JaxsunApex Linux - Newbie 3 01-30-2007 09:39 AM
Log all of a shell script's I/O to the console and a file trevelluk Programming 8 04-18-2005 02:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration