Remote shell question

Bradley E. Smith brad at bradley.bradley.edu
Sat Feb 2 01:52:42 AEST 1991


In <1991Feb1.125425.14866 at cbnews.att.com> smk at cbnews.cb.att.com (Stephen M. Kennedy) writes:

>I want to start up a process in the background on a remote machine using
>remsh (sysV) or rsh (bsd), e.g.,

>	remsh/rsh remote-host 'sleep 30 > /dev/null 2>&1 &'
I had this same problem...what I did was to use a 'C' program below.

#include	<stdio.h>
main()
{
	int i;
	for (i=0;i<20;i++) {
		close(i);
	}
	i = fork();
	if(i) 
		exit(0);
	execl("/usr/openwin/demo/xterm","bradley", "-ls", "-sb", "-fn","9x15", 0);
}



More information about the Comp.unix.shell mailing list