This version of the Auto Flash script can be used in a cron job or some other automated way without the need for the user to confirm anything.
You must have the required packages installed that are listed in the interactive script in order for this script to work correctly.
This script should be run as root user to be able to place the shared object file in the correct location. Of course if you want the user configured location then you will not need root permissions as they are only needed for placing the file outside of the user allowed area .
#!/bin/bash flash_file="/usr/lib/mozilla/plugins/libflashplayer.so" instver=$(strings "$flash_file" | grep "LNX" | awk '{print $2}') instver=${instver//,/.} newver=`lynx -dump https://get.adobe.com/flashplayer/about/ | grep Linux | awk '{print $5}'` if [[ "$instver" == "$newver" ]]; then exit 0 elif [[ "$instver" < "$newver" ]]; then : else echo "Sorry I cannot determine versions correctly" exit 0 fi cd /tmp wget https://fpdownload.adobe.com/get/flashplayer/pdc/$newver/flash_player_npapi_linux.x86_64.tar.gz sleep 2 tar -zxvf /tmp/flash_player_npapi_linux.x86_64.tar.gz libflashplayer.so mv libflashplayer.so "$flash_file" rm flash_player_npapi_linux.x86_64.tar.gz
This file is not commented but if you need/want to know what the script is doing please refer to the interactive version