Build a Bash-based network scanner on Raspberry Pi 5 and schedule it to run hourly with cron
to log newly discovered devices.
The flow: create the script → make it executable → validate outputs → schedule hourly with crontab
. Screenshots below show each step.
Use the nano text editor to create the script file.
Define variables and the subnet to scan, run nmap
to list active IPs, process results with conditionals, then copy the temp device list into a running scan log.
Concatenate to verify what will run.
Concatenate logs to confirm new entries.
0 * * * * /path/to/scan.sh
).