how to know the current process id?

Q&A's, tips, howto's
Post Reply
csfreebird
Posts: 107
Joined: Tue Jan 15, 2013 11:54 am
Location: China, Beijing
Contact:

how to know the current process id?

Post by csfreebird »

I want to output current process id, save it as a file, the file content is all arguments of this process. e.g.

I have a test.lsp file, when running it with -a=b -c=d
I want to save a process id file: 16754,
cat 16754, I will see
-a=b -c=d

csfreebird
Posts: 107
Joined: Tue Jan 15, 2013 11:54 am
Location: China, Beijing
Contact:

Re: how to know the current process id?

Post by csfreebird »

(sys-info 7)

:)

nobody talking here, so quite. :(

ssqq
Posts: 88
Joined: Sun May 04, 2014 12:49 pm

Re: how to know the current process id?

Post by ssqq »

I have not use process, because switch at Windows and Ubuntu.

Trythistwo
Posts: 2
Joined: Sat Nov 19, 2016 10:57 am

Re: how to know the current process id?

Post by Trythistwo »

Your talents surpass your loveliness.
goldclubslot

Post Reply