| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Using tcpser on a Pi for telnet gateway to C64? |
On Monday, June 26, 2017 at 9:32:58 AM UTC-6, 6502en...{at}gmail.com wrote:
> Thanks for your help!
>
> Well, I did all 4 steps, but so far I get always the 0 and not the 1
when I type: ps x |grep -v grep |grep -c "tcpser" ... Especially
I made sure that I set the startSerial file to execute with chmod +x ...
>
> I would like to delete the file in script with:
> ***************
> #!/bin/sh
>
> RESULT=`ps x |grep -v grep |grep -c "tcpser"`
>
> if [ $RESULT = 0 ]; then
> tcpser -s 2400 -d /dev/ttyUSB0 &
> ***************
> because I have an empty first row above that - maybe here is the mistake?
>
> With what order can I delete the script?
>
> ----------------
Hi. I would think that your CRON is not running or there is something up
with the timing job that was entered (That's just a guess). *Make sure
that your pi is updated with sudo apt-get update and then sudo apt-get
upgrade.
There's a couple of ways to get a picture of what's going on, the first
thing is to turn on the cron logging and then look at it's log with the
command: less /var/logs/cron.log and see what it is reporting. And then go
to correct the spelling or
whatever the cause is. Check the doc under "debugging the cron
timer" to see how to turn it on.
Another approach is to see if the script,itself, is working. Manually
issue the script command with ./startSerial (if that's the name you called
your script). Perhaps you never made the text file executable.
Finally, if the script is working, bypass it and manually type: tcpser -s
2400 -d /dev/ttyUSB0 &
at the bash and then issue a "ps -A" the tcpser should be in the
list near the bottom. If it is, then issue the ps -x | grep -v grep |grep
-c "tcpser" command manually to see the result. That should tell
you if the tcpser command is working, itself.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)SEEN-BY: 57/0 116/102 130/210 512 153/250 218/630 317/2 393/68 633/267 280 SEEN-BY: 640/384 712/620 848 770/0 1 3 100 340 772/0 1 210 500 @PATH: 770/3 1 712/848 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.