Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Perl: exec function with rename and Java

Reply
Thread Tools

Perl: exec function with rename and Java

 
 
Andy K
Guest
Posts: n/a
 
      05-27-2004
Hi

I am trying to use the Perl 'exec' function to execute a Java application
using a different process name, similar to...
exec {'/bin/sleep'} 'minute', 60;
When I grep for the process, I get 'minute 60' as expected.

However, when calling a Java application, the following call does not to
work:-
exec {'/opt/java/bin/../bin/PA_RISC2.0/native_threads/java'} 'newname',
myApp;
and I get a coredump.

although I am able to successfully use 'exec' without renaming the process
e.g.
exec('/opt/java/bin/../bin/PA_RISC2.0/native_threads/java myApp');

For clarification, am avoiding the call to the .java_wrapper in
java/bin...hence the call to the Java binary.
Am using Perl v5.6.1 on an HP-UX 11.11 box

Any ideas how I can call my Java app with 'exec' and successfully rename the
process ?

Thanks.

Andy

P.S.
Wasn't sure whether to post to a Perl of Java ng so thought I'd try here
first



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Net::SSH.exec Using the "exec" method interactively Guillermo Riojas Ruby 0 11-26-2010 05:17 PM
Runtime.exec(String[]) Doesn't Always Work, bBut Runtime.exec(String) Does Hal Vaughan Java 11 05-22-2006 04:49 PM
exec "statement" VS. exec "statement in globals(), locals() Ted Python 1 07-22-2004 08:51 AM
exec "statement" VS. exec "statement" in globals(), locals() tedsuzman Python 2 07-21-2004 08:41 PM
Backup Exec 9.1: The Backup Exec job engine system service is not responding Christian Falch Computer Support 1 06-23-2004 02:22 AM



Advertisments