[nmglug] A couple of remote computing questions

Anthony Martinez pi at pihost.us
Sun Dec 12 22:59:42 PST 2004


On Sun, Dec 12, 2004 at 10:54:19PM -0800, Tim Emerick 
carved this out of pure phosphors:
> I am running sshd on my home pc.  I have a couple of questions regarding
> remote computing and backgrounding tasks.
> 
> 1. During an SSH session I use apt-get to upgrade my debian distribution.  If
> I am disconnected during the middle of it I tend to get some errors.

Run it under screen, this gets rid of problem 2.

> 
> 2. If I use apt-get dist-upgrade &, will the process end if the SSH session
> ends or will it continue to run until finish?
> 
> 3. What is the difference between using one ampersand to background a task
> and two ampersands?
> 

foo & bar means run foo in the background and then start bar

foo && bar means run foo in the foreground, then start bar if foo exits
sucessfully

> 4. Am I using the wrong terminology when saying --backgrounding--.  Is this
> commonly referred to as --forking a process-- ??

1 no and 2 yes.

forking a process is the act of using the fork() system call to create another
copy of the process. man 2 fork for details.

> 
> Thanks!
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Send holiday email and support a worthy cause. Do good. 
> http://celebrity.mail.yahoo.com
> 
> _______________________________________________
> nmglug mailing list
> nmglug at nmglug.org
> http://www.nmglug.org/mailman/listinfo/nmglug

-- 
printk(KERN_ERR "msp3400: chip reset failed, penguin on i2c bus?\n");
	2.2.16 /usr/src/linux/drivers/char/msp3400.c




More information about the nmglug mailing list