Process ID of th shell

Andy Crump andyc at bucky.intel.com
Fri May 31 19:55:08 AEST 1991


>>>>> On 31 May 91 12:06:30 GMT, gilette at trinidad.inria.fr (Serge Gilette) said:

Serge>  i was wondering how a script shell can tell the process id of the
Serge> shell it's attached to (in order to being able to kill it).


Try the variable $$.
--

    -- Andy Crump

    ...!tektronix!reed!littlei!andyc | andyc at littlei.intel.com
    ...!uunet!littlei!andyc          | andyc at littlei.uu.net

Disclaimer: Any opinions expressed here are my own and 
            not representive of Intel Corportation.



More information about the Comp.unix.questions mailing list