Solved

What is the easiest way to truely run a task in the background

Posted on 2014-10-20
2
186 Views
Last Modified: 2014-10-20
I am looking for the most painless way to run something in the background of  redhat Linux and not depend on things such as screen being there.

I would like to do
   yum update -y system*  
and not be bothered with the output to the screen while I am trying to work on that console in the forground .

It would be good to have a history of the transaction when it was done so I can make sure nothing went bad.

Just putting
command  &> filename
is a little messy and was hoping there other ways to do this
0
Comment
Question by:TIMFOX123
2 Comments
 
LVL 7

Accepted Solution

by:
Stampel earned 500 total points
Comment Utility
nohup  yum update -y system*

nohup  yum update -y system* > /tmp/logfile.txt 2>&1
( the "2>&1" will redirect error to /tmp/logfile.txt)
0
 

Author Closing Comment

by:TIMFOX123
Comment Utility
that sure covers it

thx
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now