Solved

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

Posted on 2014-10-20
2
197 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
ID: 40392181
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
ID: 40392349
that sure covers it

thx
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

770 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