kod...@gmail.com
unread,Jul 30, 2018, 5:00:14 AM7/30/18You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
When executing this script
#!/bin/bash
/usr/bin/pgrep -f `/usr/bin/basename $0` && echo OK
echo $$
$$ gets written twice, as confirmed by
./proc.sh | grep '[[:digit:]]'
(assuming the script has been saved under the file proc.sh)
Expected behavior = $$ should be echoed only once.
Anyone else seeing this?
Is this normal?