The time I tried fetch the next thing I noticed was I lost _ALL_ the
settings in te modem. Pinholes vcc2 username .password the lot. It was a
pre password modem tho'.
Is the perl sockets based version avalable?
What about the telnet interface
$m10_prompt='/Telecom Fast Access>/';
$Host_modem_name="M10";
$modem_command="show ip int";
$username="PR";
$password="Telecom";
use Net::Telnet ();
$Host_modem = new Net::Telnet(Prompt => $m10_prompt);
$Host_modem->open($Host_modem_name);
$Host_modem->login($username, $password);
## get ip interfaces
@mr=$Host_modem->cmd(String => $modem_command);
dumps the response in an array one line per element. I am just
not able to see a "correct" method that I am comfortable with to
pull the IP from it aside from looping through with get line and
looking to keep the state of the first word which seems klunky.
-kit
>
> Yes. It's just that nobody has had anything to say. And the IPs have been
> stable for about 10 days now I think.
>
> But, for the record, I'm still playing around with my dynamic DNS script.[1]
> Today I figured out how to invoke a CGI script via fetch instead of lynx.[2]
> I was having trouble running lynx from a cron job.[3] But fetch was made to
> be non-interactive and does the job well. The next step is to detect that the
> fetch has not updated the DNS.[4]
>
> When I get this to a satisfactory state, I'll be posting the details on my website.
>
>
> [1] - making sure my servers still work after an IP address change.
>
> [2] - how to update my DNS with the fetch command instead of using my www browser.
>
>
> [3] - a cron job is a job which automagically runs according to a preset timetable
> (i.e. chronologically).
>
> [4] - make sure that the remote system successfully updated my DNS. and if it
> didn't, then remember to try again next cron job[1].
> --
> Dan Langille
>
> To unsubscribe: send mail to majordomo@freebsddiary.cx
> with "unsubscribe adsl" in the body of the message
To unsubscribe: send mail to majordomo@freebsddiary.cx
with "unsubscribe adsl" in the body of the message
Received on Thu Jul 15 22:45:04 1999