LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-27-2012, 08:33 AM   #1
cdhar
Member
 
Registered: Jul 2012
Posts: 41

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


Hi,

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, 08:37 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

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

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
See:
http://www.linuxquestions.org/questi...a-file-273862/
 
Old 09-27-2012, 08:48 AM   #4
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

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.
 
  


Reply



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

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

All times are GMT -5. The time now is 01:00 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
Open Source Consulting | Domain Registration