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

Jim Kinney jim.kinney at gmail.com
Wed Dec 18 10:03:29 EST 2013


I have a process running now to import ~3TB into hadoop. It's a single
command that I forgot to run in screen. It will return when it finishes.
Too small to script.
On Dec 18, 2013 9:56 AM, "JD" <jdp at algoloma.com> wrote:

> Never got into screen or tmux. Tend to script things, so submitting a
> batch task
> via "task spooler" automatically logs all output to a file and disconnects
> from
> the terminal. It also provides control over how many tasks run
> concurrently -
> queuing other jobs automatically.
>
> Or am I missing the point completely?
>
> Between task spooler and ansible and cluster-ssh, I feel well covered for
> any
> possible remote admin need.  Task Spooler is not in many repositories, but
> it is
> 1 tool that I will manually install on my batch processing systems.
>
> No need to remember much ... just put "ts" in front of any batch command.
> It
> becomes 2nd nature quickly.
>
> It has been around for a very long time.
> http://freecode.com/projects/taskspooler
>
> On 12/18/2013 09:14 PM, Lightner, Jeff wrote:
> > 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..
> >
> >
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20131218/2545c3fc/attachment-0001.html>


More information about the Ale mailing list