[ale] How to move a running process to screen session

Lightner, Jeff JLightner at water.com
Wed Dec 18 09:14:59 EST 2013


To prevent hang up you have to start with nohup and end with ampersand (&).

However, the purpose of screen is NOT just to run a process in the background but to allow you to start one in the foreground then send it to background so you can either go to another terminal and pull it into foreground or simply pull it back into foreground when you log back in.     As Jim notes screen is really good for when you know you're going to start a process that is going to run longer than you want to stick around and watch it but you do want to see its output or current status later.

Jeffrey C. Lightner
Sr. UNIX Administrator

DS Waters of America, Inc.
5660 New Northside Drive NW
Suite 250 (adjust as needed)
Atlanta, GA  30328

P: 678-486-3516
C: 678-772-0018
F: 678-460-3603
E: jlightner at water.com





-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Paul Cartwright
Sent: Wednesday, December 18, 2013 6:28 AM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] How to move a running process to screen session

On 12/17/2013 10:21 PM, Jim Kinney wrote:
> Sometimes I start a process that is going to take far longer than I'm
> willing to wait on and I forgot to load up a screen session to run in
> so if my VPN connection dies my process dies with it. Such is the life
> of an admin.
what about & ?? can't you run it in the background ?? I do that with processes that I don't want hogging my terminal session ( like hodoku.py
) and I close the screen session and the process is still running..

--
Paul Cartwright
Registered Linux User #367800 and new counter #561587

_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo




Athena®, Created for the Cause(tm)
Making a Difference in the Fight Against Breast Cancer

---------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------




More information about the Ale mailing list