[NTLUG:Discuss] Help with background processes and SSH
David Camm
bbai at onramp.net
Wed Apr 25 23:42:05 CDT 2001
assuming you're trying to run this process from the command line, like:
cp * /foo/bar where * will be a large number of files, you can simply
do:
cp -f * /foo/bar &
the -f will force an overwrite if the file already exists in /foo/bar
and the & runs the process in the background.
you can log off and log back in later and voila! the process will be
done.
i'm not sure if, on login again, you'll get the completion message for
the background process, but this definitely works.
kedbauer at swbell.net wrote:
>
> screen(1) will let you do this. Just start up a screen session before
> you start your application. You can then disconnect from that screen
> session and reconnect to it later.
>
> Kyle
>
> On Wed, 25 Apr 2001, David South Jr observed:
>
> > There are times when I've SSHed into my linux box that I start it doing
> > something that I know will take a long time. I'd like to background that
> > process, close SSH, and take my laptop to do something else. Then later, log
> > back on and foreground the previous shell.
> >
> > HELP.
> >
> > This would be very helpful.
> >
> > Thanks,
> >
> > DJ
> > _______________________________________________
> > http://www.ntlug.org/mailman/listinfo/discuss
> >
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list