annotate bin/cmd @ 8088:3f90926b83c9

<oerjan> learn Sgeolang used to change frequently, but eventually it rusted in place.
author HackBot
date Fri, 20 May 2016 00:47:30 +0000
parents ccc447c7c094
children 83a25804a4c6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6882
3a1f3dc57df4 <shachaf> ` >bin/cmd echo -e \'#!/bin/bash\\ncut -d "" -f 3 < /proc/$1/cmdline\'; chmod +x /tmp/hmm
HackBot
parents:
diff changeset
1 #!/bin/bash
6884
ccc447c7c094 <shachaf> ` >bin/cmd echo -e \'#!/bin/bash\\npid="$PPID"\\n[ -n "$1" ] && pid="$1"; cut -d "" -f 3 < /proc/$pid/cmdline\'
HackBot
parents: 6882
diff changeset
2 pid="$PPID"
ccc447c7c094 <shachaf> ` >bin/cmd echo -e \'#!/bin/bash\\npid="$PPID"\\n[ -n "$1" ] && pid="$1"; cut -d "" -f 3 < /proc/$pid/cmdline\'
HackBot
parents: 6882
diff changeset
3 [ -n "$1" ] && pid="$1"; cut -d "" -f 3 < /proc/$pid/cmdline