For a few years now I've been using this hack: http://pastebin.ca/1023635
to automatically install my own ssh pubkey on any machine I log into. Very handy for a sysadmin. I think I've shown this here before. One thing that bugs me about doing this is that it causes my big long command string to show up in the ps output which makes a mess of ps. I am trying to change this behavior but not having much success. You can't change your own $0 apparently and I have tried changing the $COMMAND at the very end to be some form of exec -a or exec -a /bin/bash since I expect that this might change the $0 when the new shell gets exec'd but I just get logged out when the exec happens. I suspect I am losing my fd or tty when this happens. Any suggestions?
-- Tracy R Reed Read my blog at http://ultraviolet.org Key fingerprint = D4A8 4860 535C ABF8 BA97 25A6 F4F2 1829 9615 02AD Non-GPG signed mail gets read only if I can find it among the spam. -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
