Unix Shell - Re: what alternatives does a shell command have in determining its

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > May 2007 > Re: what alternatives does a shell command have in determining its





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: what alternatives does a shell command have in determining its
Janis Papanagnou

2007-05-23, 7:20 pm

Janis Papanagnou wrote:
> Larry W. Virden wrote:
>
>
>
> How about
>
> ps -p $PPID


Let me add, to get the name of the process and suppress the header
you can use (on Linux; I can't tell for Solaris' ps options)

ps h -p $PPID -o "%c"


Janis
[vbcol=seagreen]
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com