Created
June 1, 2010 21:59
-
-
Save horatio-sans-serif/421574 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node> fs.readFileSync('/proc/self/status') | |
'Name:\tnode\nState:\tR (running)\nSleepAVG:\t98%\nTgid:\t12179\nPid:\t12179\nPPid:\t12178\nTracerPid:\t0\nUid:\t1000\t1000\t1000\t1000\nGid:\t1000\t1000\t1000\t1000\nFDSize:\t32\nGroups:\t1000 \nVmPeak:\t 43628 kB\nVmSize:\t 43624 kB\nVmLck:\t 0 kB\nVmHWM:\t 7280 kB\nVmRSS:\t 6772 kB\nVmData:\t 35540 kB\nVmStk:\t 84 kB\nVmExe:\t 3628 kB\nVmLib:\t 4172 kB\nVmPTE:\t 44 kB\nThreads:\t1\nSigQ:\t1/2944\nSigPnd:\t0000000000000000\nShdPnd:\t0000000000000000\nSigBlk:\t0000000000000000\nSigIgn:\t0000000000001000\nSigCgt:\t0000000180010000\nCapInh:\t0000000000000000\nCapPrm:\t0000000000000000\nCapEff:\t0000000000000000\n' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rlwrap node-repl | |
node> fs.readFileSync('/proc/self/status') | |
<Buffer > | |
node> fs.readFileSync('/proc/self/status').toString() | |
'' | |
node> fs.readFileSync('/proc/11015/status').toString() | |
'' | |
node> fs.readFileSync('/proc/11015/status').toString('utf8') | |
'' | |
node> fs.readFileSync('/proc/11015/status', 'binary') | |
'' | |
node> fs.readFileSync('/proc/11/status', 'utf8') | |
'' | |
node> | |
$ cat /proc/11/status | |
Name: events/1 | |
State: S (sleeping) | |
SleepAVG: 98% | |
Tgid: 11 | |
Pid: 11 | |
PPid: 1 | |
TracerPid: 0 | |
Uid: 0 0 0 0 | |
Gid: 0 0 0 0 | |
FDSize: 32 | |
Groups: | |
Threads: 1 | |
SigQ: 0/2944 | |
SigPnd: 0000000000000000 | |
ShdPnd: 0000000000000000 | |
SigBlk: ffffffffffffffff | |
SigIgn: 0000000000010000 | |
SigCgt: 0000000000000000 | |
CapInh: 0000000000000000 | |
CapPrm: 00000000ffffffff | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment