Presumably the cron is being logged to a file anyway ? So just add a line to show the memory with "free -h"How could the shell script log the RAM usage to a file? I'm not a coder...
Code:
#!/bin/bash# keep wifi aliveping -c2 192.168.1.1 if [ $? != 0 ] then echo " " echo "No network connection, restarting wlan0" echo "Memory usage" free -h ifconfig wlan0 down sleep 30 ifconfig wlan0 up else echo " " fi
Not requesting a frame (afaik), but you could grab the admin page (assuming you have got that enabled for non-local accessIs there a command (wget to /dev/null?) to request a frame from motion every hour or so on a linux host in the same network to try to keep the networking functional?
Code:
wget -O /dev/null "http://192.168.1.42:8080/" # Change IP address to that of your Motion server.
Statistics: Posted by rpdom — Sat Nov 16, 2024 12:11 pm