Remote upgrade
Joshua Oreman
oremanj at webserver.get-linux.org
Thu May 1 17:53:55 PDT 2003
On Thu, May 01, 2003 at 05:40:11PM -0700 or thereabouts, James Long seemed to write:
> On Thu, May 01, 2003 at 03:40:21PM -0500, boxend at swbell.net wrote:
> > When doing a remote upgrade, what is the best way to force the process into the
> > background, in case the dialup line for ssh session dies before buildworld finishes.
>
>
> Ensure that /tmp/ has free space to hold a few Megabytes of output, and use:
>
> # make buildworld >/tmp/make_bw.out 2>&1 &
>
> Then you can monitor the progress of the make by examining /tmp/make_bw.out
>
> # tail -f /tmp/make_bw.out
>
> Control-C will terminate tail, and return you to a shell prompt,
> while the make continues to run in the background.
>
> This is not as sophisticated as using screen, but simpler, and does
> not require installing any additional software.
But some shells will kill background processes when they log out.
Either:
* Put `nohup ' in front of the `make' line
* Run `disown' right after putting it in the background
Note: csh and tcsh users don't need to worry about this.
HTH,
-- Josh
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list