home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!ukma!darwin.sura.net!jvnc.net!nuscc!lincoln.technet.sg!swispl
- From: swispl@solomon.technet.sg (SW International)
- Subject: Question: How to get comd line arg of processes
- Message-ID: <Bxw8nH.3ru@lincoln.technet.sg>
- Sender: news@lincoln.technet.sg
- Nntp-Posting-Host: solomon.technet.sg
- Organization: TECHNET, Singapore
- X-Newsreader: TIN [version 1.1 PL6]
- Date: Wed, 18 Nov 1992 04:04:29 GMT
- Lines: 17
-
-
-
- I'm writing a C program which needs to obtain the command line
- arguments of other running processes. Actually, 'ps -af' does
- the job quite nicely, but due to other constraints, I need to
- incorporate that function within my program.
-
- I've not done much system programming before. Please advise if
- you know how it can be achieved and the pitfalls I need to watch
- out.
-
- Thanks.
- --
- cheewai ---------- __o
- chlai@nyx.cs.du.edu -------- _`\<,_
- swispl@solomon.technet.sg ------- (*)/ (*)
- ~~~~~~~~~~~~~~~~
-