Go to advanced search

by RDK
Wed Oct 10, 2018 5:30 pm
Forum: General discussion
Topic: Screen Application
Replies: 18
Views: 1147

Re: Screen Application

Folks.....I have finally gotten back to this project. I have installed tmux and am playing with it. However, I find it had the same problem as "screen" when I start it with this command: tmux new-session -s foobar -d "/usr/bin/python /mnt/usbdrive/pgms/testa.py" The test program run (counts down fro...
by RDK
Sat Oct 06, 2018 6:27 am
Forum: Beginners
Topic: Confusion with /etc/rc.local
Replies: 14
Views: 759

Re: Confusion with /etc/rc.local

Folks.....Thanks for all of the good ideas. I'll put a file in /var/tmp, but first I'll clean it out:

Code: Select all

sudo find /var/tmp/ -mindepth 1 -delete
....RDK
by RDK
Fri Oct 05, 2018 2:21 pm
Forum: Beginners
Topic: Confusion with /etc/rc.local
Replies: 14
Views: 759

Re: Confusion with /etc/rc.local

Thanks for the ideas. I'll give it some thought....RDK
by RDK
Fri Oct 05, 2018 5:44 am
Forum: Beginners
Topic: Confusion with /etc/rc.local
Replies: 14
Views: 759

Re: Confusion with /etc/rc.local

OK now that we have discussed the merits (or lack thereof) for using rc.local, can anyone comment on the meat of my original question?...RDK
by RDK
Tue Oct 02, 2018 2:19 pm
Forum: Beginners
Topic: Confusion with /etc/rc.local
Replies: 14
Views: 759

Re: Confusion with /etc/rc.local

OK, :) This is a program monitoring a continuous process, like for example the weather. The program posts data to a database. It can run for days, weeks, months without any issues. However, it does fail on occasion. In that case I trap the error and I don't want the program to restart during the nex...
by RDK
Tue Oct 02, 2018 12:21 pm
Forum: Beginners
Topic: Confusion with /etc/rc.local
Replies: 14
Views: 759

Re: Confusion with /etc/rc.local

@mfa298.....OK, but this totally avoids the meat of my posting: why am I seeing/ why have I created two rc.locals and what can I do about it?...RDK Now to your comments , the goal of my code was to prevent the screen session and associated Python pgm from starting automatically after a reboot. I'm w...
by RDK
Tue Oct 02, 2018 7:02 am
Forum: Beginners
Topic: Confusion with /etc/rc.local
Replies: 14
Views: 759

Confusion with /etc/rc.local

I have a Python pgm which is started in a screen session by the /etc/rc.local. su me -c "screen -d -m /usr/bin/python /mnt/usbdrive/pgms/mypgm.py" Regardless of the reason, in the Python pgm I execute the two shutil.move lines to swap rc.local.nopgm into rc.local and then initiate a reboot. rc.local...
by RDK
Wed Sep 26, 2018 5:15 am
Forum: General discussion
Topic: Screen Application
Replies: 18
Views: 1147

Re: Screen Application

Thanks folks....I'm resurrecting an old PiB+ Jessie to experiment with all of these ideas. I'm aware of the "screen -r" command, but the screen session created by my rc.local itself is closed when my Python program ends, so there is no screen session to attach to. Rebuild in progress and experiments...
by RDK
Tue Sep 25, 2018 6:51 pm
Forum: General discussion
Topic: Screen Application
Replies: 18
Views: 1147

Re: Screen Application

Hmmmm, that was what I suspected. I don't really what to restart that program/script, I really want to see the error messages which should be displayed when the program/script terminates. Oh well....RDK
by RDK
Tue Sep 25, 2018 1:13 pm
Forum: General discussion
Topic: Screen Application
Replies: 18
Views: 1147

Re: Screen Application

Perhaps I need a bit of clarification? Then when you re-attach to the screen you will be asked if you wish to kill the window by pressing 'k' or restart the process that failed by pressing 'r' When you say "restart the process that failed", I'm not sure if "process" means the screen session window o...
by RDK
Tue Sep 25, 2018 5:39 am
Forum: General discussion
Topic: Screen Application
Replies: 18
Views: 1147

Re: Screen Application

Thanks for the information, I've started looking into tmux. However, in the mean time, is there an option or keyword that I can add to my rc.local command su xxx -c "screen -d -m /usr/bin/python /mnt/usbdrive/pgms/mypythonpgm.py" so that this session does not end if the program itself terminates? I'...
by RDK
Mon Sep 24, 2018 4:02 pm
Forum: General discussion
Topic: Screen Application
Replies: 18
Views: 1147

Screen Application

I use the terminal multiplexer "screen" application a lot. I start a screen session in my rc.local at boot-up like this: su xxx -c "screen -d -m /usr/bin/python /mnt/usbdrive/pgms/mypythonpgm.py" where xxx is the user who will own the session. If I'm at a command prompt I start a screen session like...
by RDK
Fri Aug 17, 2018 7:47 am
Forum: Beginners
Topic: Installing RTL_433 software for my SDR Antenna
Replies: 6
Views: 3796

Re: Installing RTL_433 software for my SDR Antenna

Folks, my RTL_433 system is working fine. However, now I want to make a change in one of the files and then make those changes "live". Do I need to repeat all of these steps:
  • cd build
    sudo cmake ../
    sudo make
    sudo make install
Thanks....RDK
by RDK
Mon Jul 16, 2018 11:46 am
Forum: Troubleshooting
Topic: Error logs - pi stops, how do I find the cause
Replies: 6
Views: 685

Re: Error logs - pi stops, how do I find the cause

Thanks for the analysis. Is there another log I should be looking at?.....RDK
by RDK
Sun Jul 15, 2018 3:28 pm
Forum: Troubleshooting
Topic: File attachments
Replies: 6
Views: 347

Re: File attachments

Dougie...Thanks, but somehow that is not the same a adding an attachment. But it works....RDK
by RDK
Sun Jul 15, 2018 3:23 pm
Forum: Troubleshooting
Topic: Error logs - pi stops, how do I find the cause
Replies: 6
Views: 685

Re: Error logs - pi stops, how do I find the cause

HTH….It took s bit longer for "Friday" to get here. In fact the Pi stopped again on the 5-th and I was busy with other things. I got to this project earlier today. Looking that SYSLOG, it might as well be written in Greek. I can see the last entry on the 5-th and the first for today, however the eve...
by RDK
Sun Jul 15, 2018 2:55 pm
Forum: Troubleshooting
Topic: File attachments
Replies: 6
Views: 347

File attachments

I just tried to attach a .txt. file to a reply and it was rejected. What is the best way to include text file data in a reply?.....RDK
by RDK
Wed Jul 04, 2018 4:57 pm
Forum: Troubleshooting
Topic: Error logs - pi stops, how do I find the cause
Replies: 6
Views: 685

Re: Error logs - pi stops, how do I find the cause

HTH….Thanks. I'm busy tomorrow, but will look into your ideas on Friday, hopefully the syslog's are not lost by then....RDK
by RDK
Tue Jul 03, 2018 1:15 pm
Forum: Troubleshooting
Topic: Error logs - pi stops, how do I find the cause
Replies: 6
Views: 685

Error logs - pi stops, how do I find the cause

I've tried to search on this topic but have not found what I'm looking for. I have a Pi v2 running Stretch. It is running a python program in a SCREEN session. This system has been running continuously for over a month without any issues. Yesterday and again today, I found the Pi non-responsive, cpu...
by RDK
Sun Mar 11, 2018 9:36 am
Forum: Beginners
Topic: Installing RTL_433 software for my SDR Antenna
Replies: 6
Views: 3796

Re: Installing RTL_433 software for my SDR Antenna

tvjon.....OK, I got it installed. Using your example I was not successful, but it gave me enough ideas that I was able to make the cmake procedure work. I'm up and running now. Thanks again....RDK
by RDK
Fri Mar 09, 2018 11:07 am
Forum: Beginners
Topic: Installing RTL_433 software for my SDR Antenna
Replies: 6
Views: 3796

Re: Installing RTL_433 software for my SDR Antenna

tvjon.....Thanks for the info. I have looked at your example and again at the GIT site. I see where you used the "autoconf" method as opposed to the "cmake". The GIT documentation call for a "make install" command at the end. I did not see this in your notes? I assume it needs to be run if I'm going...
by RDK
Fri Mar 09, 2018 7:48 am
Forum: Beginners
Topic: Installing RTL_433 software for my SDR Antenna
Replies: 6
Views: 3796

Installing RTL_433 software for my SDR Antenna

I'm looking into using an SDR antenna to listen to some of my local weather sensors. It would appear that I'm not alone and that it is doable. However, I'm a bit of a "noobs" when it comes to installing and compiling software on my Pi. Here is a link (https://github.com/merbanan/rtl_433) to the GIT ...
by RDK
Tue Feb 13, 2018 9:58 pm
Forum: Advanced users
Topic: Using a Raspberry Pi to translate/transfer IP traffic from the incoming IP address to another
Replies: 0
Views: 193

Using a Raspberry Pi to translate/transfer IP traffic from the incoming IP address to another

OK, this is a bit unusual, but we have two IPS supplied Internet address which are in the same subnet, for example 66.55.44.3 and 66.55.44.2. We have a router that does not like its WAN addresses to be on the same subnet. So, my question, can I configure a Pi to accept traffic on 66.55.44.2 and pass...
by RDK
Fri Dec 22, 2017 6:36 am
Forum: Beginners
Topic: SD card with Stretch running on PiV3B, will it work on a PiB+ or PiV2
Replies: 2
Views: 315

SD card with Stretch running on PiV3B, will it work on a PiB+ or PiV2

I've seen several posting asking if a SD card from a Raspberry Pi V2 or earlier V3 could be used on a newer Pi unit. I understand this question and the related issues. However, can a fully updated SD card with Stretch as the OS from a Raspberry Pi V3B be used on a Raspberry Pi B+ or a Raspberry Pi V...

Go to advanced search