view bin/cmd @ 7000:67b2f6d74bde

<shachaf> le/rn weather/lambdabot: ?? (?metar CYUL) \\ (?metar ENVA) \\ (?metar ESSB) \\ (?metar KOAK)
author HackBot
date Wed, 24 Feb 2016 23:11:44 +0000
parents ccc447c7c094
children 83a25804a4c6
line wrap: on
line source

#!/bin/bash
pid="$PPID"
[ -n "$1" ] && pid="$1"; cut -d "" -f 3 < /proc/$pid/cmdline