Skip to content

Commit 37f8ecd

Browse files
committed
SVCPLAN-6835: update history script to support longer usernames
1 parent a034e11 commit 37f8ecd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/history.csh.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set thisPID=$$
77
set origUser=`whoami`
88
set thisUser="$origUser"
99
while ( "$thisUser" == "$origUser" && "$thisPID" != "0")
10-
set ARR=`ps h -p$thisPID -ouser,ppid;`
10+
set ARR=`ps h -p$thisPID -ouser:30,ppid;`
1111
set thisUser=`echo $ARR | awk '{ print $1 }'`
1212
set thisPID=`echo $ARR | awk '{ print $NF }'`
1313
end

templates/history.sh.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ origUser=$(whoami)
88
thisUser=$origUser
99
while [ "$thisUser" == "$origUser" -a "$thisPID" != "0" ]
1010
do
11-
ARR=($(ps h -p$thisPID -ouser,ppid;))
11+
ARR=($(ps h -p$thisPID -ouser:30,ppid;))
1212
thisUser="${ARR[0]}"
1313
myPPid="${ARR[1]}"
1414
thisPID=$myPPid

0 commit comments

Comments
 (0)