I have shell script which I run like this
/var/www/test.sh 2015
or
/var/www/test.sh 2014
When this script runs, it actually takes data from freeradius and generates gnuplot base graph for the specific year in the www folder like
/var/www/output.jpg
Now I want to make a php drop down menu with years like 2015, 2014 and so on, and when user select any year, it should run the script with the specific choice year. ***But how can I pass year to the shell script.***
so far I have tried this but its not working.
root@rm:/var/www# cat test5.php
some title
" />
root@rm:/var/www#
Asked by Syed Jahanzaib
(297 rep)
Jun 17, 2015, 05:27 AM
Last activity: Jun 23, 2025, 12:01 PM
Last activity: Jun 23, 2025, 12:01 PM