We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a034e11 commit 37f8ecdCopy full SHA for 37f8ecd
templates/history.csh.erb
@@ -7,7 +7,7 @@ set thisPID=$$
7
set origUser=`whoami`
8
set thisUser="$origUser"
9
while ( "$thisUser" == "$origUser" && "$thisPID" != "0")
10
- set ARR=`ps h -p$thisPID -ouser,ppid;`
+ set ARR=`ps h -p$thisPID -ouser:30,ppid;`
11
set thisUser=`echo $ARR | awk '{ print $1 }'`
12
set thisPID=`echo $ARR | awk '{ print $NF }'`
13
end
templates/history.sh.erb
@@ -8,7 +8,7 @@ origUser=$(whoami)
thisUser=$origUser
while [ "$thisUser" == "$origUser" -a "$thisPID" != "0" ]
do
- ARR=($(ps h -p$thisPID -ouser,ppid;))
+ ARR=($(ps h -p$thisPID -ouser:30,ppid;))
thisUser="${ARR[0]}"
myPPid="${ARR[1]}"
14
thisPID=$myPPid
0 commit comments