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
function pwdx { | |
# note: NF is the number of columns, so $NF gives us the last column | |
lsof -a -p $1 -d cwd -n | tail -1 | awk '{print $1, "\t", $NF}' | |
} | |
function portpwdx { | |
# pid=$(lsof -i :5858 | tail -1 | perl -pe 's/[^\s]+\s+([^\s]+)\s.*/$1/') | |
pid=$(lsof -i :$1 | tail -1 | perl -pe 's/[^\s]+\s+([^\s]+)\s.*/$1/') | |
if [[ ! -z $pid ]]; then | |
echo $pid |
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
{ | |
question: { | |
questionId: '', | |
response: [ | |
// HISTORICAL | |
{ | |
score: '' | |
answerId: '' | |
}, | |
{ |