From owner-freebsd-questions Mon May 6 17:59:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from cyber-sea.net (cyber-sea.net [216.55.5.42]) by hub.freebsd.org (Postfix) with ESMTP id 43A3937B403 for ; Mon, 6 May 2002 17:59:41 -0700 (PDT) Received: from vaio.ianlauder.com (evrtwa1-ar1-4-47-235-091.evrtwa1.dsl-verizon.net [4.47.235.91]) by cyber-sea.net (8.9.3/8.9.3) with ESMTP id RAA35273 for ; Mon, 6 May 2002 17:59:32 -0700 (PDT) Message-Id: <5.1.0.14.2.20020506174727.00aa60b8@mail.gte.net> X-Sender: ilauder@mail.cyber-sea.net (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 06 May 2002 17:55:23 -0700 To: freebsd-questions@FreeBSD.ORG From: Ian Lauder Subject: Java not accessible from Perl script Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have FreeBSD 3.3 server and just had the FreeBSD Java JDK 1.1.8 installed. I can run the "java" executable from my normal login. The problem is that when I try to execute the "java" program from within a Perl script and read back the results it is not returning anything. $PipeMsg = 'java |'; open(JAVACALL, $PipeMsg) || print 'Error opening java call'; while () { $RetVal = $_; print "
Return = $RetVal"; } This should just retrieve and display the java help output, but nothing is returned, it also doesn't retrieve anything if I pass in a java class and parameters. Which do work if I run them from the command line, outside the perl script. What else do I have to configure on the server to get the Perl script to execute the java program? Best regards, Ian http://www.ianlauder.com ian@ianlauder.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message