• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu

File Access Information?

Started by the_face029, 2008.04.09, 18:26:34

Previous topic - Next topic

ydario

Hi,

in the next XWP drop, the OS/2 file notification API will be available also for other programs (now it is exclusively used by WPS).
You will get real time notification for new/changed/accessed files.

Sample code is on xwp tracker

http://xtracker.netlabs.org/index.php?quicksearch=1002

Yuri Dario

warpcafe

Hi Yuri,

good job! :)
Does that mean that the API now basically is there but it needs additional software to use it? (Like a special WPS folder that hooks into the notification broadcast)
And if yes: Any idea whether that will make it into the eWP "branch" too?

I usually don't install eWP from an eCS install but just skip it and add XWP later... however most people will just go along with eWP I'm afraid... just curious to see what this would mean for 3rd party developers wanting to use the notifiation API... ;)

Thanks for the valuable feedback, regards,
"It is not worth an intelligent man's time to be in the majority.
By definition, there are already enough people to do that"
- G.H. Hardy

Saijin_Naib

Yeah, I hope it goes to eWP, I usually just keep that, though XWP is more feature-rich. I'm very excited! I hope we can get a recent documents folder!

Also, Zeta had a recently used programs folder, could this be employed as well? Sort of like XPs start menu and how it shows you the programs you use the most? I really like that feature now that I use it more.

The Blue Warper

Quote from: the_face029 on 2008.04.09, 18:26:34
[...]
I'm wondering if there is any way to know which files have been accessed on a drive
[...]

Quote from: the_face029 on 2008.04.10, 18:36:49
I'm only looking a log or folder on the system where there would be information on recently opened files.


Hi!
Another suggestion for you might be Security/2 ( http://hobbes.nmsu.edu/pub/os2/system/sses-0.4.5.zip ).
Though I never used it myself, you should be able to log normal file activities (read, write, modify, access...) by specifying the correct parameters for the sses.sys driver.  The software also comes with an API, so you might even write your own script(s) and/or function(s).

ydario

hi,


the new API will not require WPS as in the old one. Currently the daemon is integrated in XWP, but plans are to make it available also when WPS/XWP are not running (it is a really simple pipe server).

bye,

Yuri

The Blue Warper

Quote from: ydario on 2008.04.16, 18:33:04
the new API will not require WPS as in the old one. Currently the daemon is integrated in XWP, but plans are to make it available also when WPS/XWP are not running (it is a really simple pipe server).

Hi, Yuri!

Just a question (I don't want this post to go OT...):
I followed the discussion going on XWorkplace Developers Mailing List about this new API you wrote.  So, did you already envisage any possible application for it?  I mean: do you first need this API as a requirement for some new software/util/app you want to write?  I'm asking you about this, because I was wondering if your newly designed API might come useful as a means to restart WPS and/or XWP in case of a bad WPS crash (those WPS crashes that sometimes force one to reboot the OS as a last resource when restarting WPS would fail).  In this view, could for example a daemon based on your API (a new XWP version or anything else) be, so to say, 'in the middle' between the PM and the WPS, so that it could do a better job in terminating the WPS whenever it hangs?  Also, could this 'open the way' to concurrent multiple WPSs or even to get single WPS objects (for example eCenter/XCenter; or different folders, when opened; and so on) having each one its own unique PID, not shared with the WPS PID?  Could therefore be fixed this way something IBM never really fixed (AFAIK), I mean all WPS objects having the same PID?  [Please correct me if you find any technical detail wrong here...]

Thank you!

ydario

Hi,


the notification api will send a message every time a file is accessed/changed/deleted, nothing more. So this API is not suitable for that task.

Bye,

Yuri

The Blue Warper

OK, then.  Thanks for your clarification!

The Blue Warper

Quote from: the_face029 on 2008.04.14, 22:11:24
Is there a file or folder in which I can find information on what devices are or were installed on an OS/2 system?  I know there's the Hardware Manager, but I don't have access to the OS/2 GUI.  If someone can provide me with a directory to a file or folder that would be greatly appreciated.

Hi,

I wasn't able to recall the name of this util before, so I couldn't give you any reference when you first made your post.  I found it at last.  Please have a look, if you're still interested, at this utility by Juergen Ulbts:
http://www.juergen-ulbts.de/content/projects/os2info/os2info.en.html
You'll find the download link at the bottom of the same page.  If you have access to an OS/2 command line, then this can possibly be something close to what you looked for.