From owner-freebsd-questions Fri Dec 12 09:35:23 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA06758 for questions-outgoing; Fri, 12 Dec 1997 09:35:23 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from penguin.wise.edt.ericsson.se (penguin-ext.wise.edt.ericsson.se [194.237.142.5]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA06727 for ; Fri, 12 Dec 1997 09:35:05 -0800 (PST) (envelope-from teima@kk.etx.ericsson.se) Received: from kkb3 (kkb3.kk.etx.ericsson.se [130.100.97.23]) by penguin.wise.edt.ericsson.se (8.7.5/8.7.3/glacier-1.12) with SMTP id SAA15189 for ; Fri, 12 Dec 1997 18:34:14 +0100 (MET) Received: from kk660.kk.etx.ericsson.se by kkb3 (SMI-8.6/LME-2.2.6) id SAA26017; Fri, 12 Dec 1997 18:34:01 +0100 From: teima@kk.etx.ericsson.se (Valter Mazzaro) Received: by kk660.kk.etx.ericsson.se (SMI-8.6/client-1.6) id SAA06798; Fri, 12 Dec 1997 18:34:00 +0100 Date: Fri, 12 Dec 1997 18:34:00 +0100 Message-Id: <199712121734.SAA06798@kk660.kk.etx.ericsson.se> To: freebsd-questions@FreeBSD.ORG Subject: java should execute scripts X-Sun-Charset: US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, I'm quite new in using java! I wonder how it's possible to run unix scripts from java. I know that I can run an executable file by running rt.exec command, for example rt.exec("dhcpconf le0 release"), but if I create a script, let's say stopDHCP that contains just the line:dhcpconf le0 release the command rt.exec("stopDHCP") doesn't work. Any hint? Thanks Valter