Looking to do this in REXX for a couple of reasons:
1) my NetDrive samba plug-in stops reasponding after some hours...not sure why, all I can tell is that the mapped drive no longer has any contents available, which means that neither through WPS nor command line can I actually get to the remote Samba share
NOTE: I simply kill ndctl.exe, re-start and all is well once again...until the next time!
2) for the above reason I need to enhance my RSYNC copy REXX script so that it verifies the accessibility of both the SOURCE and TARGET objects before any processing actually starts. In general this is good practice regardless. In my case the added benefit is that if ndctl.exe died again at least I know that, and can either re-start first or simply stop the script execution
OK, so right now I'm pulling the RexxUtil library into my RSYNC script, is there something there I should look at?
My REXX familiarity and experience are very surface level (rudimentary), although way back when, as in 20 yrs ago, I used to do a boat-load of mainframe scripting with REXX...ha ha. I suspect there is something out there that would allow me to basically point to a fully qualified filename (so path and the filename) to see if the given 'object' can be accessed. If my NetDrive plugin dies that call should fail and I should be able to trap that exception.
Any suggestions where I can find that additional info?
Thanks!