On Thursday, June 29, 2017 at 2:11:07 AM UTC-6, Janne Johansson wrote:
>
> pgrep tcpser || tcpser -s 2400 -d /dev/ttyUSB0 -p 6502 -ts &
>
> which basically means,
>
> "if tcpser is not found among the list of running programs, run it again"
>
That rocks too. "100 ways to skin a cat" as they say. I still personally prefer
such things to be a service and let OS all takes care of itself without the
hacking of the rc. But it's fun hacking around with the stuff, that's for sure.
There's probably
another 10 ways out there to do it. If they're centralized here then they're
easy to find all in one spot :) If there's other ways, share 'em.
Cheers,
c
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|