I'm pretty sure you cant 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, lets 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 thats very ugly, and requires root