Let's say I'm running a bash script run.sh
in the background and then I modify run.sh
.
Is there anyway to look at the original content of run.sh
script?
For example:
echo "echo a1; sleep 120; echo a2" > run.sh; bash run.sh&
aPid=$!
echo "echo bbbbbb" > run.sh
I'm expecting something like cat {magic file/path}
and it will print out
echo a1; sleep 120; echo a2
I'm poking around /proc/$aPid , but couldn't find anything.