Search found 64 matches
- Sun Apr 19, 2020 12:18 am
- Forum: Python
- Topic: Running Python script from crontab doesn't display
- Replies: 5
- Views: 278
Re: Running Python script from crontab doesn't display
That did it, thanks.
- Sat Apr 18, 2020 8:01 pm
- Forum: Python
- Topic: Running Python script from crontab doesn't display
- Replies: 5
- Views: 278
Running Python script from crontab doesn't display
Re-writing some Bash scripts in Python, the following Bash script: echo "test" >> /dev/tty1 displays on the console when run manually in /home AND when the Bash script is called by sudo crontab. However, if I use this Python script: #!/usr/bin/python3 import sys sys.stdout.write("test...
- Sun Nov 17, 2019 8:19 pm
- Forum: Raspberry Pi OS
- Topic: buster: logrotate is now driven by systemd
- Replies: 2
- Views: 2125
Re: buster: logrotate is now driven by systemd
JumpZero, Thanks for posting this. I was doing another stuff at 00:00 and after the logrotate the system either unsuccessfully didn't make a WiFi connection or stopped doing my main cron job. Tried to find where one could change the time unsuccessfully, so followed the suggestion of moving /etc/cron...
- Sun Nov 03, 2019 6:36 pm
- Forum: Networking and servers
- Topic: 3B+, Buster and 3G dongle unwanted data usage
- Replies: 2
- Views: 763
Re: 3B+, Buster and 3G dongle unwanted data usage
I can't see how it is the Pi either, but was hoping that someone here may have experienced a similar problem.
Cheers,
Dave
Cheers,
Dave
- Sun Nov 03, 2019 8:38 am
- Forum: Networking and servers
- Topic: 3B+, Buster and 3G dongle unwanted data usage
- Replies: 2
- Views: 763
3B+, Buster and 3G dongle unwanted data usage
I run a Pi with a Huawei E8231 3g dongle. Once a day, at a specific time I connect to the internet, send a100KB data file and then disconnect. It will go for weeks using about 100kB a day on a 500MB/month data plan. Then one day 500MB of data disappears during the 24 hour off-internet period. Lookin...
- Fri Sep 27, 2019 7:13 am
- Forum: Troubleshooting
- Topic: Cron stops on swapping HDMI or keyboard
- Replies: 5
- Views: 511
Re: Cron stops on swapping HDMI or keyboard
RaTTus, I am guessing you mean sudo service cron status With the system running normally this is what I get: ● cron.service - Regular background program processing daemon Loaded: loaded (/lib/systemd/system/cron.service; enabled) Active: active (running) since Sun 2019-09-22 15:18:27 NZST; 5 days ag...
- Wed Sep 25, 2019 12:50 am
- Forum: Troubleshooting
- Topic: Cron stops on swapping HDMI or keyboard
- Replies: 5
- Views: 511
Re: Cron stops on swapping HDMI or keyboard
As I have never heard of systemd-cron Google led me to this HowTo: https://www.putorius.net/using-systemd-timers.html What I couldn't determine was why using systemd-timers might be better in my situation. Is it more robust? Also, I would need to work out how to stop multiple instances of this timer...
- Tue Sep 24, 2019 12:48 am
- Forum: Troubleshooting
- Topic: Cron stops on swapping HDMI or keyboard
- Replies: 5
- Views: 511
Re: Cron stops on swapping HDMI or keyboard
Thank you for the suggestions ... will have to wait until the weekend as the devices are at a remote location. I recall looking into syslog and still see that cron apparently runs every minute, but the bash script that cron calls does not get executed. Perhaps should mention that cron is a one line ...
- Mon Sep 23, 2019 8:38 am
- Forum: Troubleshooting
- Topic: Cron stops on swapping HDMI or keyboard
- Replies: 5
- Views: 511
Cron stops on swapping HDMI or keyboard
I run a cron job every minute. As I have two Model 3B+ and only one HDMI monitor I have noticed that when I swap the monitor and/or USB keyboard between units that the Pi running Jessie sometimes stops running. Maybe, 1 in 10 swap-overs. sudo service --status-all shows a [+] against cron but it just...
- Wed Sep 04, 2019 12:59 am
- Forum: Networking and servers
- Topic: Internet data usage, Jessie versus Stretch
- Replies: 3
- Views: 672
Re: Internet data usage, Jessie versus Stretch
I am NOT about to bin ALL the work I have done getting to this stage. The only logical conclusion to your brief statement, that I can see, is that maybe Stretch has to go and I revert to Jessie on both units. However, I am quite keen to figure out what is actually not working on the Stretch install....
- Mon Sep 02, 2019 7:32 am
- Forum: Networking and servers
- Topic: Internet data usage, Jessie versus Stretch
- Replies: 3
- Views: 672
Internet data usage, Jessie versus Stretch
I have two Pi B+, one running Jessie and the other Stretch. They both have 3G USB dongles attached which I use for remote data collection. Once a day I bring up an internet connection, send 50-100KB worth of data and then take down the internet connection. The unit running Jessie has worked well for...
- Thu Jul 04, 2019 12:55 am
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: I2C ignorating decimal points. MPPT solar
- Replies: 2
- Views: 727
Re: I2C ignorating decimal points. MPPT solar
I use the ADS1115 and one thing I had to do was keep the I2C lines quite short, ie 25-50mm. Also, the ADSD1115 breakout board I used had some pull-up resistors, which I had to remove. Just to clarify 31,345V - 32,542 V, 31456 V, 32,567 I assume you mean: 31.345V, 32.542 V, 31456 V, 32.567, ie no min...
- Thu May 16, 2019 12:31 am
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: Adding an I2C device via sysfs -- how to specify parameters?
- Replies: 3
- Views: 1254
Re: Adding an I2C device via sysfs -- how to specify parameters?
If I recall correctly, doing this years ago, that in /sys/bus/i2c/devices/i2c-1/new_device or /sys/bus/i2c/devices/i2c-1/ there should be a list of parameters that you are allowed to change. Again, I think something like echo some number to that location How you might add new ones I never tried.
- Wed Mar 27, 2019 7:17 pm
- Forum: Networking and servers
- Topic: Losing connection after setting up hotspot and connecting back to wifi
- Replies: 4
- Views: 1035
Re: Losing connection after setting up hotspot and connecting back to wifi
I get <502 Bad Gateway> when I try to look at the file.
- Tue Mar 26, 2019 9:34 am
- Forum: Networking and servers
- Topic: Losing connection after setting up hotspot and connecting back to wifi
- Replies: 4
- Views: 1035
Re: Losing connection after setting up hotspot and connecting back to wifi
Don't know if this will be of much help, but I see similarities with a problem I was having. https://www.raspberrypi.org/forums/viewtopic.php?f=36&t=229968&p=1413254&hilit=static+dhcpcd#p1413254 Are you using Stretch or Jessie? Since I got rid of dchpcd and using a static interface on on...
- Tue Mar 26, 2019 4:02 am
- Forum: Networking and servers
- Topic: Huawei GSM dongle used both as network adapter AND GSM
- Replies: 1
- Views: 384
Re: Huawei GSM dongle used both as network adapter AND GSM
I would suggest going to https://community.hologram.io/ and searching through their forum. Many guys there seem to use at AT commands to talk to their modems, IE Huawei E3531 etc. I just use one of their Python scripts.
Good luck,
Dave
Good luck,
Dave
- Fri Jan 25, 2019 5:55 pm
- Forum: Networking and servers
- Topic: Connect Raspi to two different wifi networks with two wifi adapters
- Replies: 3
- Views: 1613
- Tue Jan 22, 2019 10:02 pm
- Forum: Networking and servers
- Topic: Some dhcpcd stuff still runs after a purge
- Replies: 5
- Views: 1012
Re: Some dhcpcd stuff still runs after a purge
Thanks Dougie. Looks like after the last session of removing dhcpcd5/dhcpcd I didn't reboot.
Now, all that remains is:
and it doesn't run. Gr8
Dave
Now, all that remains is:
Code: Select all
./etc/systemd/system/dhcpcd.service.d/wait.conf
./etc/dhcpcd.secret
./etc/dhcpcd.duid
Dave
- Fri Jan 18, 2019 6:41 pm
- Forum: Networking and servers
- Topic: Some dhcpcd stuff still runs after a purge
- Replies: 5
- Views: 1012
Re: Some dhcpcd stuff still runs after a purge
I will try that and report back in about a week. The Pi is in a remote location.
Thanks,
Dave
Thanks,
Dave
- Fri Jan 18, 2019 2:20 am
- Forum: Networking and servers
- Topic: Some dhcpcd stuff still runs after a purge
- Replies: 5
- Views: 1012
Re: Some dhcpcd stuff still runs after a purge
Pretty sure I rebooted several times, but will try again.
Thanks,
Dave
Thanks,
Dave
- Thu Jan 17, 2019 8:26 pm
- Forum: Networking and servers
- Topic: Some dhcpcd stuff still runs after a purge
- Replies: 5
- Views: 1012
Some dhcpcd stuff still runs after a purge
Even though I have done a: sudo apt-get purge dhcpcd I still get a lot of dhcpcd-related entries in syslog. Doing a : sudo find -name dhcpcd* -print The following files still remain: ./etc/systemd/system/dhcpcd.service.d/wait.conf ./etc/dhcpcd.secret ./etc/dhcpcd.duid ./run/dhcpcd ./run/dhcpcd.unpri...
- Mon Jan 07, 2019 10:16 pm
- Forum: Networking and servers
- Topic: Switching wlan0 connections takes a long time
- Replies: 12
- Views: 1292
Re: Switching wlan0 connections takes a long time
bzt, Had a look at "sysctl -a" and thought I don't want to mess around at this level. The suggestion of using "watch 1 ip addr sh" ... at the moment I don't know how to run the 2nd terminal on my hardware. I hope it would give similar clues as looking at syslog. epoch1970, Using ...
- Sun Jan 06, 2019 7:23 pm
- Forum: Networking and servers
- Topic: Switching wlan0 connections takes a long time
- Replies: 12
- Views: 1292
Re: Switching wlan0 connections takes a long time
Thanks both for further suggestions. I will digest the comments, there is quite a bit of new content in them that I have to get my head around. Progress after the dhcpcd.conf timeout to 1 second suggestion by epoch 1970: Changed timeout in dhcpcd.conf to 1 second. All I can tell at this stage is tha...
- Fri Jan 04, 2019 10:30 pm
- Forum: Networking and servers
- Topic: Switching wlan0 connections takes a long time
- Replies: 12
- Views: 1292
Re: Switching wlan0 connections takes a long time
Hi epoch 1970, 1) Jessie latest upgrades applied 2) Yes 3) Yes 4) Yes, that is my understanding 5) I guess so, I am not confident how this part works. I won't be back at the remote site for a few days to try your suggestion, regarding timeout in dhcpcd.conf I will also read this page carefully: http...
- Fri Jan 04, 2019 3:02 am
- Forum: Networking and servers
- Topic: Switching wlan0 connections takes a long time
- Replies: 12
- Views: 1292
Re: Switching wlan0 connections takes a long time
No apologies necessary. As I do not understand the dhcp/dhcpcd network acquisition process I will likely post incorrect clues to help solving it! Maybe some more information on the ESP8266. My understanding it is operating in "beacon mode" and is operating "open" key_management.....