open files code example

Started by tomtoo, August 14, 2010, 06:16:55 AM

Previous topic - Next topic

tomtoo

may I have one?



I use newlisp all the time to interact with other applications, say, to open an editor with a newlisp-generated file--I'd like to see if the editor is already running with said file open, and if it is, do nothing, or rerun my script, etc.  I can do this in an awkward way by calling ps with exec, but I was wondering if there was a newlisp-only solution.



thanks!



(where has everybody been, btw? traffic around here has been kind of low lately...)

cormullion

#1
Don't think there's a way in newLISP. You could perhaps see if the 'fuser' command is available and run that with exec, but it's scarcely better than what you're doing now...



Perhaps everyone's on holiday... :)