I need to run a PHP script via command line but this happens.
- by user355367
I need to run a scrip via command line but the files necessary for me to run it require me to be in the directory of the script. But I cannot do it for every command line i need to run. Their are over five thousand. Could someone tell me how to either format the list easily or add something to the format that would make it run. I have something like this....
php /path/to/the/script/01240/script.php
php /path/to/the/script/03770/script.php
php /path/to/the/script/02110/script.php
php /path/to/the/script/02380/script.php
php /path/to/the/script/03220/script.php
php /path/to/the/script/02340/script.php
php /path/to/the/script/03720/script.php
php /path/to/the/script/03460/script.php
php /path/to/the/script/0180/script.php
php /path/to/the/script/02000/script.php
php /path/to/the/script/01830/script.php
php /path/to/the/script/0980/script.php
php /path/to/the/script/0400/script.php
php /path/to/the/script/02750/script.php
php /path/to/the/script/0760/script.php
php /path/to/the/script/02690/script.php
..... and it goes on for 5000 more lines.