Dialling Out
[1/12] from: justin::halls::brunel::ac::uk at: 30-Aug-2000 9:08
Hi
I am a newcomer to REBOL and would like to use it
to solve a particular programming problem. I have
a stand-alone application, which is not attended
by a user, which occasionaly needs to send or
receive e-mails. Rather than programming all the
code at a low level, REBOL seemed ideally suited
to performing the network interaction processes
through an application generated script and a
CREATE_PROCESS call to REBOL.EXE
My problem is that the machine does not have a
permanent connection to the network, but needs to
dial out when required. Does anyone have a
suitable script, or a technique which can be used
to get the machine to dial out a connection (using
a connection defined in DUN) without requiring any
user interaction?
I woud have thought that this would be a very
common requirement (most networking tools have the
ability to dial out if they are not connected,
although simply invoking DUN still requires a user
confirmation) and I would suggest that it would be
a very worthwhile enhancment to REBOL.
Regards
Justin
*****************************************
* Justin A. T. Halls *
* Millennium Homes Project Manager *
* Brunel Institute for Bioengineering *
* Brunel University *
* Kingston Lane *
* Uxbridge *
* Middx. UB8 3PH *
* UK *
* Tel. +44 (0)1895 271206 *
* Fax +44 (0)1895 274608 *
* e-mail: [justin--halls--brunel--ac--uk] *
*****************************************
[2/12] from: al:bri:xtra at: 30-Aug-2000 20:18
Re: [REBOL] Dialling Out
This was sent through Rebol using:
send [list--rebol--com]
followed by this message
It works for me.
Andrew Martin
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
[3/12] from: al:bri:xtra at: 30-Aug-2000 20:21
Justin wrote:
> I would have thought that this would be a very common requirement (most
networking tools have the ability to dial out if they are not connected,
although simply invoking DUN still requires a user confirmation) and I would
suggest that it would be a very worthwhile enhancement to REBOL.
In Windows 98, while not connected to the net, I typed in the Rebol console:
>> send [list--rebol--com] {Re: [REBOL] Dialling Out
{ This was sent through Rebol using:
{ send [list--rebol--com]
{ followed by this message
{
{ It works for me.
{
{ Andrew Martin
{ ICQ: 26227169
{ http://members.xoom.com/AndrewMartin/
{ -><-
{ }
Rebol connected and sent the email.
Of course, I had previously told Window 98 to connect automatically. Perhaps
you should do the same as well?
Andrew Martin
Look for me in Rebol - The Official Guide.
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
[4/12] from: petr:krenzelok:trz:cz at: 30-Aug-2000 10:45
[Al--Bri--xtra--co--nz] wrote:
> Justin wrote:
> > I would have thought that this would be a very common requirement (most
<<quoted lines omitted: 17>>
> Of course, I had previously told Window 98 to connect automatically. Perhaps
> you should do the same as well?
What about built-in serial port support? Can we implement own dialer? :-)
-pekr-
[5/12] from: justin:halls:brunel:ac at: 30-Aug-2000 10:27
> -----Original Message-----
> From: [Al--Bri--xtra--co--nz]
<<quoted lines omitted: 26>>
> you should do the same as well?
> Andrew Martin
OK, this may be a bit more subtle than i had
expected. I had omitted to mention that
I am using the Windows CE (MIPS on a Packard bell
EasyMate 800).
When I do the same as above I get:-
connecting to: smtp.freeserve.co.uk
** Access Error: Cannot connect to
smtp.freeserve.co.uk
** Where: smtp-port: open [scheme: 'smtp]
if email?
>>
On the other hand if I run: pmail -to
[justin--halls--brunel--ac--uk]
I get the dial-up networking dialog box asking if
I want to connect. I still need manual
intervention at this stage of course.
With your rebol setup as above do you stil need to
click the 'connect' button in the DUN dialog box,
or does it all work silently for you?
Regards
Justin
[6/12] from: al:bri:xtra at: 30-Aug-2000 21:22
pekr wrote:
> What about built-in serial port support? Can we implement own dialer? :-)
Sure. Just find the manual for your modem, and send the right codes through
the serial port.
Then write the several layers of software to communicate through the serial
port and implement TCP etc.
Andrew Martin
I'm _NOT_ volunteering! :-)
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
[7/12] from: al:bri:xtra at: 30-Aug-2000 22:17
Justin wrote:
> OK, this may be a bit more subtle than I had expected. I had omitted to
mention that I am using the Windows CE (MIPS on a Packard bell EasyMate
800).
> When I do the same as above I get:-
> connecting to: smtp.freeserve.co.uk
<<quoted lines omitted: 3>>
> if email?
> >>
You might have something set up wrong on your rebol setup. Perhaps your
password or username is incorrect? Or you've incorrectly specified your pop
and smtp servers (though the smtp looks OK)? Do you have any firewalls or
proxies in the way? Try Rebol on a PC with Windows to confirm.
> On the other hand if I run: pmail -to "[justin--halls--brunel--ac--uk]" I get
the dial-up networking dialog box asking if I want to connect. I still need
manual intervention at this stage of course.
> With your rebol setup as above do you still need to click the 'connect'
button in the DUN dialog box, or does it all work silently for you?
If I've clicked off the "connect automatically" check box on the DUN dialog
box, I then have to click the DUN connect button with Rebol or my browser or
email client.
I prefer to click on "connect automatically", as I've got a "all you can
drink" dial up connection, and my email client works better this way with
HTML email with embedded advertising.
Andrew Martin
Auto-DUN Rebol...
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
[8/12] from: jelinem1:nationwide at: 30-Aug-2000 8:54
> My problem is that the machine does not have a
permanent connection to the network, but needs to
dial out when required. Does anyone have a
suitable script, or a technique which can be used
to get the machine to dial out a connection (using
a connection defined in DUN) without requiring any
user interaction?
IIRC Holger had replied to this topic along the lines that automatic
dialing should be an operating system task and doesn't belong in REBOL. If
you want automatic dialing, set it up in your operating system. If your
operating system doesn't support it then, well, I guess you can write a
script for your modem....
- Michael Jelinek
[9/12] from: justin:halls:brunel:ac at: 30-Aug-2000 15:43
IMHO the ability to connect to or disconnect from
the
network connection is something one should be able
to do from a script. Of course that still leaves
the
question of which system functions the implementor
chooses to use to implment it.
Anyway, I am stillleft with the problem of getting
a connection in some way. Even (my copy of) Win98
does not have an 'Automatic Connection' button and
insists on some sort of user intervention.
I am looking into the RASDial(...) function which
appears to do the job, but the documentation is
obscure. I had just hoped that someone had trod
the
path before me. Heh Ho.
Justin
[10/12] from: d95-mjo:nada:kth:se at: 30-Aug-2000 18:05
I don't know if this is what you're looking for in this particular
case, but I have made a tiny DLL to make it easier to call the Win32
RAS functions from REBOL/Command without all the annoying
Win32 structs.
The DLL currently has function wrappers for RasDial, RasHangup and
RasGetConnectStatus. You can find the source for the DLL here:
http://www.d.kth.se/~d95-mjo/rebol/dlltest.cpp
and the /Command example script here:
http://www.d.kth.se/~d95-mjo/rebol/dialup_example.r
I've only tested it in Win98 and Win2000, but it seems to work.
Obviously, this requires the /Command experimental version for
Win9x/NT/2000. :-)
/Martin Johannesson, [d95-mjo--nada--kth--se]
On Wed, 30 Aug 2000 [justin--halls--brunel--ac--uk] wrote:
[11/12] from: lmecir:geocities at: 30-Aug-2000 18:31
Hi,
my copy of Windows 98 dials out whenever Rebol asks. No user
intervention needed. It depends on the settings of Win 98 IMHO.
Regards
Ladislav
----- Puvodní zpráva -----
Od: <[justin--halls--brunel--ac--uk]>
Komu: <[list--rebol--com]>
Odesláno: 30. srpna 2000 10:08
Predmet: [REBOL] Dialling Out
[12/12] from: justin:halls:brunel:ac at: 1-Sep-2000 8:46
Thanks, that looks great. I will try compiling
for
WinCE and see if it works, but I can see no reason
why it should not.
Justin
> -----Original Message-----
> From: [d95-mjo--nada--kth--se]
<<quoted lines omitted: 16>>
> and the /Command example script here:
> http://www.d.kth.se/~d95-mjo/rebol/dialu
p_example.r
I've only tested it in Win98 and Win2000, but it
seems to work.
Obviously, this requires the /Command experimental
version for
Win9x/NT/2000. :-)
/Martin Johannesson, [d95-mjo--nada--kth--se]
On Wed, 30 Aug 2000 [justin--halls--brunel--ac--uk]
wrote:
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted