Xref: utzoo comp.sources.d:2507 comp.sources.wanted:4601 comp.unix.questions:8306 comp.dcom.modems:2102 Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!ucsd!rutgers!uwvax!oddjob!gargoyle!att!alberta!access!edm!steve From: steve@edm.UUCP (Stephen Samuel) Newsgroups: comp.sources.d,comp.sources.wanted,comp.unix.questions,comp.dcom.modems Subject: Re: call back Message-ID: <3208@edm.UUCP> Date: 16 Jul 88 01:33:05 GMT References: <428@solaris.UUCP> Organization: Unexsys Systems Inc., Edmonton,AB. Lines: 38 From article <428@solaris.UUCP>, by wyle@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@UOFAMTS