Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4140

Troubleshooting • Re: SegFaulting and Inode errors on Raspi 3A

$
0
0
How could the shell script log the RAM usage to a file? I'm not a coder... ;-)
Presumably the cron is being logged to a file anyway ? So just add a line to show the memory with "free -h"

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
Is 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?
Not requesting a frame (afaik), but you could grab the admin page (assuming you have got that enabled for non-local access

Code:

wget -O /dev/null "http://192.168.1.42:8080/" # Change IP address to that of your Motion server.
That will produce some output. To make it really quiet add -q

Statistics: Posted by rpdom — Sat Nov 16, 2024 12:11 pm



Viewing all articles
Browse latest Browse all 4140

Trending Articles