I'm pretty sure you can't do this but maybe someone has some weird hack.
Is there a way to get comments (#blahblah) to show up in ps output?
My problem is that I have a script -- let's call it "myscript.sh" -- that is not very descriptive.
I'd love to be able to do something like:
./myscript.sh #Running on 10.10.45.10
and have ps output the comment line, instead of just saying "myscript.sh"
The only way I can think of hacking around it would be to place the comment in a variable, grep out "myscript.sh" PID and then read that var from /proc/PID/environ. But that's very ugly, and requires root.