newLISP Fan Club

Forum => newLISP and the O.S. => Topic started by: tomtoo on August 14, 2010, 06:16:55 AM

Title: open files code example
Post by: tomtoo on August 14, 2010, 06:16:55 AM
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...)
Title: Re: open files code example
Post by: cormullion on August 14, 2010, 08:59:16 AM
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... :)