annotate bin/psocmd @ 2320:da776ff681e5

<Jafet> (echo \'#!/bin/sh\'; echo \'a() { p=$(echo -n $(ps -p $1 -oppid | tail -1)); if ps -p $p -ocmd | tail -1 | egrep " \\| cat\\$"; then ps -p $1 -ocmd | tail -1; else a $p; fi }\'; echo \'a $$\') > bin/quine2 && quine2 a b c
author HackBot
date Fri, 01 Mar 2013 02:07:19 +0000
parents 7a61285e9493
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2272
7a61285e9493 <oerjan> (echo \'#!/bin/sh\'; echo "ps -o cmd") >bin/psocmd; chmod +x bin/psocmd
HackBot
parents:
diff changeset
1 #!/bin/sh
7a61285e9493 <oerjan> (echo \'#!/bin/sh\'; echo "ps -o cmd") >bin/psocmd; chmod +x bin/psocmd
HackBot
parents:
diff changeset
2 ps -o cmd