Therefore, I call this PHP script from the command line:
/usr/bin/php /var/www/bims/index.php "projects/output"
and its output:
file1 file2 file3
What I would like to do is get this output and give the command "rm", but I think im not doing it right:
/usr/bin/php /var/www/bims/index.php "projects/output" | rm
My goal is to remove all file names output to a PHP script. What should be the right way to do this?
Thanks!
source share