TIP: Click on subject to list as thread! ANSI
echo: os2lan
to: Peter Knapper
from: Roy J. Tellason
date: 1999-10-25 11:37:19
subject: OS/2 & Samba under Linux

Peter Knapper wrote in a message to Roy J. Tellason:

 PK> All it does is look for a file on each mapped drive to 
 PK> determine if the file is accessible and acts accordingly.

That much was apparent to me as soon as I saw the list...

 PK> Sleep2 is a program that waits for x seconds and then exits, in 
 PK> this case x = 60 seconds. 

Isn't there a command that's already likely to be on my system that will do
this?  Something in REXX,  maybe?

 PK> There is also no harm in attempting to re-map a drive that is 
 PK> already mapped.

 RJT> Your NET USE idea sounds good,  how does it tell when it's been 
 RJT> connected okay?

 PK> Well it wont exit the loop until it DOES find ALL the files... 
 PK> The NET USE will display an error message within a few seconds 
 PK> if it can't find the resource so all the mappings are attempted 
 PK> again, but other than the error message there is no other 
 PK> adverse affect.

I think using something like this to establish that the machine is connected
to the Samba server on the Linux box should work pretty well.  I may end up
using a separate process,  though,  to run in the background and see if the
w95 box has been turned on and then to establish that connection,  if so, 
rather than hanging up startup.cmd with continuing attempts to access a
machine that may not be turned on.

--- 
* Origin: TANSTAAFL BBS 717-838-8539 (1:270/615)

SOURCE: echoes via The OS/2 BBS

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