[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SLUG] script -> modem



On Mon, Jun 18, 2001 at 10:42:47AM +0800, Mike Holland wrote:
> 
> > i am writing a script that needs to use a modem to dial a particular
> > number then hang up without the call being answered.
> 
> The chat(8) (in PPP package on redhat) does exactly that sort of thing.
> 
> > except on this box because it has to kick portslave off the modem, and
> 
> "Kick off"? Shouldnt they be using lock files to share access?
> 
> Easist way is to use a dial-out program like pppd to reset the
> modem, and handle lockfiles. Use a chat(8) script to do the work, and
> return an error code so the dialout program then quits.
> 
> > if i invoke minicom after disabling portslave, it works and after exiting
> > it so do the echo commands. there is something minicom is doing to
> > reinitialise the modem. anyone know what?
> 
> See also "stty" if you want to do this low-level control.
> Also, you can tell the modem "ATZ" to reset echoing, etc.

Another suggestion would be (g)kermit - which gives you access
to all that but is also scriptable.

Anand

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug