On Thursday 12 November 2020 01:44:00 pm Dr.
Nikolaus Klepp wrote:
Anno domini 2020 Thu, 12 Nov 13:19:12 -0600
Michael via tde-users scripsit:
Would one of the TDE dev’s be so kind as to point me in the right
direction on how to do that (the uninstall process runs as sudo)?
if [ ! -z "$(pidof twin)" ]; then echo "TDE RUNNING"; fi
Thank you Nik!,
Is there any difference to using?:
if [ "$(pidof twin)" ]; then echo "TDE RUNNING"; fi
It seems to work the same, but I ask ‘cause there a tons of hidden ‘gotchas’
that aren’t ever really documented.
this will also work:
if pidof twin > /dev/null; then echo "TDE RUNNING"; fi
if pidof twin; then echo "TDE RUNNING"; fi
...
But everyody has his/her coding habits :)