Solved

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

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

729 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