call back

Stephen Samuel steve at edm.UUCP
Sat Jul 16 11:33:05 AEST 1988


>From article <428 at solaris.UUCP>, by wyle at solaris.UUCP (Mitchell Wyle):
> How do I tell my machine to call me back?  I would prefer if my company
> paid for the phone calls :-).  I want to be able to login, issue a
> command, and have the machine call me back, with a csh or init running
> on the line.  I could tell uucico to call me, but I would have to talk
> uucp g protocol after my modem answered :-).  I want a shell or a login
> prompt.

There are a couple of ways to do this: 

1) if you have the 'ct' command, you can use it to dial out and start
up a gety task, you would then need a command like;
 (sleep 40 ; ct mynumber ) & 
 exit

40 seconds later, a ct run is started up..

2) write something like the following

	stty -hupcl -echo
	sleep 2
	echo  '+++\c' 
	sleep 2
	echo  'ATDT5551234\r\c'
	sleep 60
	stty echo
 It's possible to improve it by adding things like making it into
 a C program that can recognize a CONNECT/NO CARRIER etc. message
 and react appropriately, but I think the general Idea gets across.

 One serious problem with the shell script is that it leaves your
 system vulnerable to someone who manages to dial in between your
 hanging up and the system dialing out (you'd have a shell running
 at that point).
-- 
-------------
 Stephen Samuel 			Disclaimer: You betcha!
  {ihnp4,ubc-vision,mnetor,vax135}!alberta!edm!steve
  BITNET: USERZXCV at UOFAMTS



More information about the Comp.unix.questions mailing list