Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2014-10-20
2
203 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

861 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