|
$ cat inst.nrx
system = String 'hostA'
p = Runtime.getRuntime().exec("pmrun -h "system" root")
$ nrc inst.nrx
NetRexx portable processor 3.04 NetRexx '3.04', build 1-20150504-0639
Copyright (c) RexxLA, 2011,2014. All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program inst.nrx
2 +++ p = Runtime.getRuntime().exec("pmrun -h "system" root")
+++ ^
+++ Warning: Variable is set but not used
Compilation of 'inst.nrx' successful [one warning]
$ java inst
$
However, if I replace pmrun in the .exec with ssh, it will exec the ssh. Any idea why it won't run?
|