| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Subject:os2 dialer with dial on demand |
DH> I am looking for someone thay will develop an idea I have. I
DH> expect nothing in return other than a copy of the released product.
DH> Basically it will be an internet PPP dialer that will sit idle on the
DH> desktop until a semaphor file is detected and extecutes the dialer.
PC> How about this?
PC> /* pppdialer.cmd */
PC> call directory value('TMP',,'OS2ENVIRONMENT')
PC> fname = 'startppp.sem'
PC> do forever
PC> i = stream(fname, 'c', 'query exists')
PC> if i \== '' then do
PC> call sysfiledelete fname
PC> /* add something here to check if ppp is already running,
PC> such as GO! v1.5, else */
PC> 'detach ppp ... >ppp.log 2>&1'
PC> end
PC> call SysSleep 55
PC> end
Almost perfect. Switch from using semaphore files to real semaphores, and
you'd have an excellent solution that would _instantly_ (well, as instant
as a non-real-time system can get ) start the PPP.
Also, don't detach... just wait on it. :-)
[ftp://hobbes.nmsu.edu/os2/dev32/rexx/rxsem02b.zip has my _real_ semaphore
support for REXX - using Mutex semaphores that are really supported by the
schedular of the OS! i.e., maps some API calls...]
Ok, not so perfect, but a great start. :-) I didn't even think about rexx... :-)
--- Maximus/2 3.01
* Origin: Tanktalus' Tower BBS (PVT) (1:342/708)SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407 SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1 @PATH: 342/5015 61 3615/50 396/1 270/101 712/624 711/934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.