[jug-discussion] How can I get the PID of a process started by ant java fork=true ...?
Hey, I have a java question :) I have an Ant target (the Jsunit start_server target, actually) which starts a java process using the java fork=true ... Ant target. How can I grab the PID for this process, or of the parent Ant process? Is the PID hidden by the JVM sandbox security, and my only option is to grep the output of ps from the process invoking Ant? Thanks, -- Chad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [jug-discussion] How can I get the PID of a process started by ant java fork=true ...?
Replying to an Ant question, yikes, . Lots of goodies here http://ant.markmail.org/search/?q=exec+pid Looks like the short answer is you can't really do it easily, but I'd go with what Steve says here with jps: http://markmail.org/message/73byck4whqbgtqyq But personally, this looks like a problem solved best by using Lucene or Solr ;) Erik On Sep 10, 2008, at 12:07 PM, Chad Woolley wrote: Hey, I have a java question :) I have an Ant target (the Jsunit start_server target, actually) which starts a java process using the java fork=true ... Ant target. How can I grab the PID for this process, or of the parent Ant process? Is the PID hidden by the JVM sandbox security, and my only option is to grep the output of ps from the process invoking Ant? Thanks, -- Chad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jug-discussion] Re: How can I get the PID of a process started by ant java fork=true ...?
On Wed, Sep 10, 2008 at 9:07 AM, Chad Woolley [EMAIL PROTECTED] wrote: How can I grab the PID for this process, or of the parent Ant process? Is the PID hidden by the JVM sandbox security, and my only option is to grep the output of ps from the process invoking Ant? Hmm, here is a hack which works on unix shell, which is probably good enough for me, even though I'll probably have to figure out the inheritence: http://forums.sun.com/thread.jspa?messageID=1536884 $$ ftw... Thx, -- Chad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [jug-discussion] No meeting tonight.
At 03:11 PM 9/9/2008, TR wrote: Also any thoughts or volunteers for topics? I'll throw one out there - 'Command line tools any programmer should know' +1 on this. Long live the keyboard! Maybe this fits with one of the topic ideas on the wiki -- Favorite small tools - four or five 10-15 minute presentations on small, lean, mean developer tools that you would recommend to colleagues. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]