Blog Posts


Script for Mirroring

Posted 2021-10-13 8:37 by azri.

Need to find way to not run if already running.

  1. 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 $$
  2. https://stackoverflow.com/questions/11145270/how-to-replace-an-entire-line-in-a-text-file-by-line-number
    Probably not required
  3. https://serverfault.com/questions/85893/running-a-cron-job-manually-and-immediately
    May not be useful
  4. https://www.generateit.net/cron-job/
    For noobs
  5. https://www.geeksforgeeks.org/crontab-in-linux-with-examples/
  6. 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
  7. https://www.geeksforgeeks.org/conditional-statements-shell-script/
    if then else fi
  8. https://linuxhint.com/bash_command_output_variable/
    Not applicable
  9. https://www.computerhope.com/unix/ush.htm
    Need to learn and memorise
  10. http://www.compciv.org/topics/bash/variables-and-substitution/
    Animated GIF examples
  11. https://httpie.io/docs#examples
    Life saver!
  12. https://superuser.com/questions/737247/get-last-modified-date-of-file-in-linux
    Lead me to httpie

Linux

Posted 2021-08-31 22:12 by azri.

su -m apache -c "echo hello; id"

Skyaware in dump1090.tpl

Posted 2021-08-11 14:17 by azri.

sana rupanya

zcat

Posted 2021-08-11 13:57 by azri.

https://www.cyberciti.biz/faq/unix-linux-cat-gz-file-command/

 

Paramount MYT

Posted 2021-08-09 21:27 by azri.

A red filter is recommended for data collection, TPoint modeling, etc.