TIP: Click on subject to list as thread! ANSI
echo: os2lan
to: JOE CARTER
from: DAVID CALAFRANCESCO
date: 1997-04-22 11:29:00
subject: netbios remote execute?

Joe Carter wrote in a message to David Calafrancesco:
 DC> Simplest, have the slow machine leave a semephore file for the
 DC> "server" to  detect periodically to trigger the mail software. I do
 DC> that exclusively for my  single machine as there are dozens of windows
 DC> that can trigger tossing but only one tossing window to do the work.
 JC> You know, that was what I was thinking about.  Too much time
 JC> configuring Fido mailers I think.    What I would like to
 JC> do is write a rexx app of a sort to act as a daemon, but I
 JC> would like a way to have it automaticly shut down, much as
 JC> the network requester and other daemons do, after they are
 JC> safe to do so.  No idea how to handle that.
I don't do REXX here because I have seen evidence that the REXX sleep 
function is more processor intensive than the wait for keyboard input of 4OS2 
and is also a billion times more difficult to interrupt or trigger earlier. 
Instead I use the following type of code all over the place on this system:
:toploop
if exist %ramdrv\midnight.flg goto midnight
if exist %ramdrv\weekly.flg goto weekly
if exist %ramdrv\moremail.flg goto process
if exist %bbsdir\logs\echotoss.log goto process
inkey /w60 "QF " Waiting for moremail.flg. loop # %aftmail_loop  %%return
 if '%return' == 'F' goto Process
 if '%return' == 'Q' goto eof
 set aftmail_loop=%@inc[%aftmail_loop]
goto toploop
Essentially it will detect semephore files left in the %ramdrv% directory as 
set in the config.sys (that way when I move that directory around I only have 
to make a single edit to move it for all the software)
After the 60 second wait it will fall through the tests and cycle to toploop 
where it will detect the presence of any of the flags and process. 
 JC> Rexec from a windoze machine?  Is that possible?  
With a right and proper IP stack you should have no problem. I have no clue 
never having set IP up in windows 3x. 
Dave Calafrancesco, Team OS/2
dave@drakkar.mhv.net
... They got the library at Alexandria, they're not getting mine! 
--- 
---------------
* Origin: Druid's Grove BBS - (914)/876-2237 (1:2624/306)

SOURCE: echomail via exec-pc

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™.