LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Stop display in console but should write in log file (https://www.linuxquestions.org/questions/linux-newbie-8/stop-display-in-console-but-should-write-in-log-file-4175429299/)

cdhar 09-27-2012 08:33 AM

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.

ButterflyMelissa 09-27-2012 08:37 AM

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...

sycamorex 09-27-2012 08:42 AM

See:
http://www.linuxquestions.org/questi...a-file-273862/

JaseP 09-27-2012 08:48 AM

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.


All times are GMT -5. The time now is 10:17 PM.