Re: [Hampshire] Dial-up modem

Top Page

Reply to this message
Author: Rob Malpass
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Dial-up modem

----- Original Message -----
From: "Tom Dawes-Gamble" <tmdg@???>
To: <hampshire@???>
Sent: Monday, October 22, 2007 11:14 PM
Subject: Re: [Hampshire] Dial-up modem


> On Mon, 2007-10-22 at 22:08 +0100, Rob Malpass wrote:
>> ----- Original Message -----
>> From: "James Courtier-Dutton" <james.dutton@???>
>> To: "Hampshire LUG Discussion List" <hampshire@???>
>> Sent: Monday, October 22, 2007 9:38 PM
>> Subject: Re: [Hampshire] Dial-up modem
>> [snip]
>>
>> >
>> > Put a semi colon at the end of the dial string.
>> > e.g
>> >
>> > ATDT12345;
>> >
>> > Dials 12345 and then no modem sounds happen.
>> >
>> > --
>>
>> Thanks - but whap Linux app can I run this in?
>>
>
> You should be able to do something like,
>
> ===========================================
> #! /bin/sh
>
> sleep 600 < /dev/modem &
> stty speed < /dev/modem
> echo "ATDT12345;" > /dev/modem
> ===========================================
>
> You will need the sleep to be long enough that it doesn't drop the line
> while your on the phone I think. You may need to set more than the
> speed of the line to the modem.
>
> You could run each of the commands from the comamand line say like:-
>
> sleep 9999999 < /dev/modem
> stty speed < /dev/moden
>
> As long as you don't log off you wont need to run that again.
>
> then just do
>
> echo "ATDT 012344567890;" > /dev/modem
>
>
>
> I was doing some work with a tty device a few days ago and used this
> method without problem.
>
> Regards,
> Tom.
>


Aha - great - many thanks - I'd never thought of that. Just tried it and
it works nicely.

Cheers
Rob