I am trying to run the java (jnlp) applet from bash and get the PID of the created process.
With this command:
javaws myapplet.jnlp > /dev/null & echo $!
Returns the pid of the first java instance that jnlp loads; I think, but has nothing to do with the java terminating process.
Any clues?
Found the original javaws as follows:
#!/bin/sh prog="$0" while [ -h "$prog" ]; do prog=$(readlink -f $prog); done [ $# -eq 0 ] && set -- -viewer exec $(dirname $prog)/javaws.real "$@"
Is there a way to change it to give the PID of the child process?
java linux jnlp
Disco Aug 16 '10 at 11:56 2010-08-16 11:56
source share