[unix-pc.general] Want uucico to work without answering the phone

ecf_hap@jhunix.JHU.EDU (Andrew Poling) (11/27/88)

Well I came up with a solution to a problem - and it seems too easy :-).  I
wanna see if anyone can poke holes in it.

I've got a UNIXpc at home, and one at work.  I've got the two set up so that
the one at home polls the one at work (phone rings at 3AM at work, nobody
cares).  The next obstacle was setting up the unixpc at home so that it
could make uucico calls, but wouldn't answer the phone every time it rang.

I RTFM'd all about phone(7), phone(4), and the Interface Specification
Manual and couldn't figure out a way to make this so.  Then I got to
thinking about the god-blessed-phone-manager and the fiddling it's compelled
to do in inittab every time I change the line mode (VOICE<==>DATA).

What I ended up doing was changing the inittab entry for ph0 from "respawn"
to "off" - that way, it doesn't matter whether the phone-manager's
colon-comment is there or not - that getty ain't gonna run.  Now I can just
leave the line set for "DATA" without fear that the damn pc will answer the
phone.

Oh yeah - I didn't just use phtoggle 'cause I'm still stuck at 3.5; ain't
got no 3.51.  I'm posting this for two reasons:
	1) if there's a reason not to do this, someone'll find it;
	2) other people may have the same problem and might even benefit :-)

So how about it?  Is this little prank on the phone-manager gonna bite me?

Andy
     
.  *        .       *           .     *  .     *   .     *    *     .       *
  .     *     _        .   *     *    .  .   *      andy@gollum.hcf.jhu.edu  .
    *  .    _/ \   *   _   .      .  *      *       *    .       *     .
\          /    \_   _/ \      *         _/\   *    ap@ipgate.hcf.jhu.edu    *
 \   . * _/  /\   \ / () \_       /\_   /   \_*  .   *   .       *    .    .
^ \_    /         _/       \    _/   \_/   <> \_    ecf_hap@jhunix.UUCP
    \ /`     <>  /   <>     \_ /   <>     _     \  *       .         *      .
\    \_  ()   __/        _    \  /\      / \_ ^  \   L64A0429@jhuvm.BITNET  .
   /\  \_   _/   ()    _/ \_   \_      _/    \_   \___________________________

jan@bagend.UUCP (Jan Isley) (11/27/88)

In article <292@jhunix.JHU.EDU>, ecf_hap@jhunix.JHU.EDU (Andrew Poling) writes:
> 
> What I ended up doing was changing the inittab entry for ph0 from "respawn"
> to "off" - that way, it doesn't matter whether the phone-manager's
> colon-comment is there or not - that getty ain't gonna run.  Now I can just
> leave the line set for "DATA" without fear that the damn pc will answer the
> phone.
> 
> Oh yeah - I didn't just use phtoggle 'cause I'm still stuck at 3.5; ain't
> got no 3.51.  I'm posting this for two reasons:
> 	1) if there's a reason not to do this, someone'll find it;
> 	2) other people may have the same problem and might even benefit :-)
> 
> So how about it?  Is this little prank on the phone-manager gonna bite me?
> 

Well, I am using 3.51 but...

This has worked for me for six months without biting me.  However, even though
I do not have a phone on ph0, my etc/inittab looks like this:

:ph0:2:off:/etc/getty ph0 1200
 ph1:2:off:/usr/lib/uucp/uugetty -r -t60 ph1 1200

The default for ph1 is data - no phtoggle required.

Actually, for the last 3 months my etc/inittab looked like that since I 
installed HDB and hooked a modem to tty000 for incoming.  Before that the OBM
was the only modem I used so it looked like:

:ph0:2:off:/etc/getty ph0 1200
 ph1:2:off:/etc/getty ph1 1200

And no problems, AFTER I got FixDisk1a from AT&T.  The problems that I was 
having before then were with uucico and the phone manager having thier own
private war, but this was with 3.51.

Now, if I could just get the Telebit on tty000 to talk reliably to an OBM!

Jan
---
jan@bagend.UUCP			"It's not funny unless it hurts someone else"
{uunet}!gatech!bagend!jan	Robert A. Heinlein
404-434-1335

ebd@cup.portal.com (Elliot B Dierksen) (11/29/88)

First, i want to apologize for not including the text i am referencing, but
i am a little limited in the way i can access the net here. Anyway...

One certain way to not have the phone manager bite you is not install it.
if you don't use the phone manager, take it off! then you can change your 
inittab tab without fear of some program diddling with it. then you also
don't need to worry about toggling the line in case (god forbid), you should
have a power outage and your unit rebooted in voice mode. that is certainly
the simplest way to avoid programs head-butting.

Elliot Dierksen
ebd@cup.portal.com

jbm@uncle.UUCP (John B. Milton) (12/02/88)

In article <11872@cup.portal.com> ebd@cup.portal.com (Elliot B Dierksen) writes:
>First, i want to apologize for not including the text i am referencing, but
>i am a little limited in the way i can access the net here. Anyway...
>
>One certain way to not have the phone manager bite you is not install it.
>if you don't use the phone manager, take it off! then you can change your 
>inittab tab without fear of some program diddling with it. then you also
>don't need to worry about toggling the line in case (god forbid), you should
>have a power outage and your unit rebooted in voice mode. that is certainly
>the simplest way to avoid programs head-butting.

Well, not quite right. The routine that diddles the inittab colons is dial(3C).
This routine is used by:
/etc/ph (the phone manager)
/usr/bin/cu
/usr/lib/uucp/uucico
/usr/bin/async_main (ate)
kermit
etc.

You should add a setgetty to your /etc/rc if you're concerned about the start
up state of the getty on the phone line. I do agree about using the phone
manager. If you don't need it, get rid of it. The ph with 3.51 is about half
the size of the "fixed" one on the 3.51a fix disk. Someone forgot to link it
with the shared library.

John
-- 
John Bly Milton IV, jbm@uncle.UUCP, n8emr!uncle!jbm@osu-cis.cis.ohio-state.edu
(614) h:294-4823, w:459-7644;  MS-DOS is a beautiful flower that smells bad!