[SunHELP] Script migration problems

Dale Ghent sunhelp at sunhelp.org
Thu Mar 29 09:42:13 CST 2001


On 29 Mar 2001, Ben Ricker wrote:

| I did as you suggested but still get the same problem. I have noticed
| that every time, the PID written to the file is the JVM's real PID
| subtract 3...a BIG kludge would be to take the PID and subtract 3 from
| it. But that is not really a good idea.

Well, realistically, resolving "$$" by the shell itself will give you the
shell's own PID.. not of any program it just kicked off. On the command
line, do "echo $$" and then do a "whodo". You'll see that the PID returned
by echo matches the PID of your login shell. Why this is different on
Linux, I have no idea.

| Anyway to kill a process based upon name? I know Linux has 'killall
| <processname>' and this would be perfect (albeit inelegant). 

Yes, in Solaris 7 or later, you can use the pkill command in the same
fassion.

/dale




More information about the SunHELP mailing list