?
Solved

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

Posted on 2014-10-20
2
Medium Priority
?
225 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
[X]
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
2 Comments
 
LVL 7

Accepted Solution

by:
Stampel earned 2000 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month8 days, 22 hours left to enroll

764 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