I have a server that I've setup running PHP. This serves JSON files and is running fine.
I also have several scripts that reads data from an outside source, connects to my MySQL Database Server, and runs commands to save the data to the MySQL Server.
Currently I am using Bash Scripts that are executed via Cron. Each Bash Script calls a PHP file that is saved in my normal web directory.
All of this is working fine, but I am wondering if there is a better way to do the timed scripts? Is it possible / more effective to write a Bash script that does the same thing as my PHP scripts?
Or what about Python or Ruby? I have always been confused about if Python or Ruby are for making webpages, or for making scripts that execute on the server.
I will also say that it is convenient that I can update the PHP scripts via my text editor and the changes instantly take effect - as opposed to having to connect to the server and fight with that text editor.