Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.sys.cbm    |    Discussion about Commodore micros    |    53,866 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 52,008 of 53,866    |
|    Janne Johansson to 6502enhanced@gmail.com    |
|    Using tcpser on a Pi for telnet gateway     |
|    29 Jun 17 10:44:40    |
      From: nospam.Janne.Johansson@f6.n221.z2.binkp.net              On 2017-06-28 05:26, 6502enhanced@gmail.com : All wrote:       > Am Montag, 26. Juni 2017 20:45:48 UTC+2 schrieb Dropnine:              > OK, I've done the following:       >       > - wrote "tcpser -s 2400 -d /dev/ttyUSB0 -p 6502 -ts &"       > - then ps -A       > - and ps -x | grep -v grep |grep -c "tcpser"       >              I didn't want to turn this into a "my oneliner is better than yours",       but unix shells makes this rather simple:              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"              or even more verbose explanation:              pgrep |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca