Page 1 of 1

open files code example

Posted: Sat Aug 14, 2010 1:16 pm
by 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...)

Re: open files code example

Posted: Sat Aug 14, 2010 3:59 pm
by cormullion
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... :)