1. how to test whether a program is running?
- Posted by Jerry Story <jstory at ocii.com> Jun 04, 2005
- 492 views
How can I test whether a program is running? For example how can I test whether Mozilla is running?
2. Re: how to test whether a program is running?
- Posted by Mario Steele <eumario at trilake.net> Jun 04, 2005
- 481 views
Jerry Story wrote: > > How can I test whether a program is running? > For example how can I test whether Mozilla is running? > It depends on what Operating System you are refering to. Windows or Linux. Mario Steele http://enchantedblade.trilake.net Attaining World Dominiation, one byte at a time...
3. Re: how to test whether a program is running?
- Posted by Jerry Story <jstory at ocii.com> Jun 04, 2005
- 475 views
Mario Steele wrote: > > Jerry Story wrote: > > > > How can I test whether a program is running? > > For example how can I test whether Mozilla is running? > > > > It depends on what Operating System you are refering to. Windows or Linux. First Linux. Then later maybe Windows, so the program will work on both Linux and Windows.
4. Re: how to test whether a program is running?
- Posted by don cole <doncole at pacbell.net> Jun 04, 2005
- 454 views
if is_file_open("Mozilla") then Don Cole sf
5. Re: how to test whether a program is running?
- Posted by Vincent <darkvincentdude at yahoo.com> Jun 04, 2005
- 465 views
don cole wrote: > > if is_file_open("Mozilla") then > > Don Cole > sf > LOL... well put, you could fool anyone with that. Regards, Vincent -- Without walls and fences, there is no need for Windows and Gates.
6. Re: how to test whether a program is running?
- Posted by Alexander Toresson <alexander.toresson at gmail.com> Jun 04, 2005
- 479 views
Jerry Story wrote: > > Mario Steele wrote: > > > > Jerry Story wrote: > > > > > > How can I test whether a program is running? > > > For example how can I test whether Mozilla is running? > > > > > > > It depends on what Operating System you are refering to. Windows or Linux. > > First Linux. Then later maybe Windows, so the program will work on both > Linux and Windows. > If you run "mozilla &", you'll get a pid, alongside a few other things written into standard output... Then you can use ps to check what programs are running and their pid... I'm not 100% sure how it'd be done, try redirecting the output from "mozilla &" to a file, and check the man page of ps... but you'll have to poll the output of ps in regular intervals... I can't check it either, I'm going away for the weekend and I don't have access to linux atm. I hope this will help. Regards, Alexander Toresson
7. Re: how to test whether a program is running?
- Posted by Hayden McKay <hmck1 at dodo.com.au> Jun 07, 2005
- 454 views
Depending on your needs.... If you want to test if another eu program is already running you could hook an interrupt and get it to return FFFFh in AX when called with a unique value in AX. Another program can call the interrupt with AX set to the unique value and check to see if FFFFh is returnd in AX. or esle an interrupt error code is usualy generated by the defualt interrupt. This is the prefered method used to test for most TSR programs.
8. Re: how to test whether a program is running?
- Posted by Jerry Story <jstory at ocii.com> Jun 07, 2005
- 472 views
Jerry Story wrote: > > How can I test whether a program is running? > For example how can I test whether Mozilla is running? I have that figured out now for Linux. This lists all the processes by name in a file. system("ps -e > " & JUNK_FILE,2) Then search the file.