From: utzoo!decvax!duke!adiron!bob
Newsgroups: net.unix-wizards
Title: my computer calls me
Article-I.D.: adiron.110
Posted: Wed Oct  6 19:52:23 1982
Received: Thu Oct  7 03:13:58 1982

Yes, a small change to getty.c + autodial code will get my machine
to originate a call to me.  You need to figure out how to trigger
things.  I make a 14 cent call, login, copy a phone number to /tmp/phon,
and send HUP to proc 1, logout and wait a second to be called back.
(I don't consider this as "cleanly implemented", but it is very useful.)
	Bob Gray (315 738-0600) (duke!adiron!bob) (gray@berkeley)

Diff of 4.1bsd getty.c and mine.
< 	int fdphon,index;
< 	char phonbuf[30];
(in main, right after the test of argc > 1 )
< 	if(tname == 'q' &&  (fdphon=open("/tmp/phon",0)) >= 0 )
< 		{
< 		read(fdphon,phonbuf, sizeof(phonbuf));
< 		close(fdphon);
< 		for(index=0;index