Toggle navigation
ADS-B Receiver
Blog
Flights
Table
System
Performance Graphs
System Information
Maps
Live Dump1090 Map
Live Dump978 Map
Plane Finder Client
Links
/dump1090/data/aircraft.json
:30053
Kiarong
Local Flightradar Status
Mabohai
PlaneFinder 2
Radarbox 1
Radarbox 2
Radarbox 3
Radarbox Brunei
Radarbox Hebat
Rimba
status.json
Search
Script for Mirroring
Posted
2021-10-13 8:37
by
azri
.
Need to find way to not run if already running.
https://stackoverflow.com/questions/16807876/how-to-check-if-another-instance-of-my-shell-script-is-running
if pidof -x "abc.sh" -o $$ >/dev/null; then echo "Process already running" fi Note: add -o $$
https://stackoverflow.com/questions/11145270/how-to-replace-an-entire-line-in-a-text-file-by-line-number
Probably not required
https://serverfault.com/questions/85893/running-a-cron-job-manually-and-immediately
May not be useful
https://www.generateit.net/cron-job/
For noobs
https://www.geeksforgeeks.org/crontab-in-linux-with-examples/
https://stackoverflow.com/questions/13781216/meaning-of-too-many-arguments-error-from-if-square-brackets
Be careful with space and wrap commands with inverted commas
https://www.geeksforgeeks.org/conditional-statements-shell-script/
if then else fi
https://linuxhint.com/bash_command_output_variable/
Not applicable
https://www.computerhope.com/unix/ush.htm
Need to learn and memorise
http://www.compciv.org/topics/bash/variables-and-substitution/
Animated GIF examples
https://httpie.io/docs#examples
Life saver!
https://superuser.com/questions/737247/get-last-modified-date-of-file-in-linux
Lead me to httpie