cancel
Showing results for 
Search instead for 
Did you mean: 

sys$forcex

 
SOLVED
Go to solution
James T Horn
Frequent Advisor

sys$forcex

Can someone do me a huge favor and write a quick little C program to request the process id and do a $forcex on that process.

OpenVMS 8.3-1h1
5 REPLIES
James T Horn
Frequent Advisor

Re: sys$forcex

Thank you for your help.
James T Horn
Frequent Advisor

Re: sys$forcex

The last link had just the program I was looking for.
Hoff
Honored Contributor

Re: sys$forcex

Whoops. Forgot one.

$ STOP /IMAGE /ID=pid
$ STOP /IMAGE prcnam

No compiler needed.
John Gillings
Honored Contributor

Re: sys$forcex

James,

Note that since V7.3 the default for STOP is /EXIT, which invokes exit handlers of the target process, but the process is still terminated. This removes some of the dangers of the STOP command. As Hoff said, there is also the /IMAGE qualifier to only issue a $FORCEX to the target process, so it may continue after exitting the current image.

(it took me more than 10 years of lobbying and pestering to get this implemented, but it finally paid off... ;-)
A crucible of informative mistakes