I need to run a PHP script via command line but this happens.

Posted by user355367 on Stack Overflow See other posts from Stack Overflow or by user355367
Published on 2010-06-05T14:30:09Z Indexed on 2010/06/05 14:32 UTC
Read the original article Hit count: 336

Filed under:

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.

© Stack Overflow or respective owner

Related posts about command-line