Re: How to find the pid of the a given process.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Put down a kernel driver that helps you out with this. Your Supervisor
will be highly impressed ;-)

On Tue, 2007-03-13 at 10:34 +0530, Prasad Joshi wrote:
> Hi,
> 
> pidof and pstree both uses /proc. But, there has to be some other way
> of doing the same thing, as it is the assignment given to us.
> Assignment explicitly mentions to not to use /proc file system and ps,
> pstree, or pidof commands. 
> 
> There has to be some way of doing it. I will try to find it out and
> will post the result here, if I am able to find out. 
> 
> Thanks a lot for taking your time to reply the questions. 
> 
> Thanks and regards, 
> Prasad.
> 
> On 3/12/07, Erik Mouw <mouw@xxxxxxxxxxxx> wrote:
>         -----BEGIN PGP SIGNED MESSAGE-----
>         Hash: SHA1
>         
>         A: http://en.wikipedia.org/wiki/Top_post
>         Q: Were do I find info about this thing called top-posting?
>         A: Because it messes up the order in which people normally
>         read text. 
>         Q: Why is top-posting such a bad thing?
>         A: Top-posting.
>         Q: What is the most annoying thing in e-mail?
>         
>         A: No.
>         Q: Should I leave quotations after my reply?
>         
>         On Mon, Mar 12, 2007 at 10:08:33AM -0700, santosh dwivedi
>         wrote: 
>         > what u think about pidof command ?
>         
>         Strace it and you will see it uses /proc.
>         
>         
>         Erik
>         
>         - --
>         They're all fools. Don't worry. Darwin may be slow, but he'll
>         eventually get them. -- Matthew Lammers in
>         alt.sysadmin.recovery
>         -----BEGIN PGP SIGNATURE-----
>         Version: GnuPG v1.4.6 (GNU/Linux)
>         
>         iD8DBQFF9Y9S/PlVHJtIto0RAk0JAJ9VQHxcRfkIodWXTmxz0qsZIn2rzwCfTina
>         aBt8N8enkbUSK5pffavUsz0=
>         =0FMP
>         -----END PGP SIGNATURE----- 
> 


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux