Stop display in console but should write in log file
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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...
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.