So I call this PHP script from the command line:
/usr/bin/php /var/www/bims/index.php "projects/output"
and its output is:
file1 file2 file3
What I would like to do is get this output and feed to the "rm" command but I think im not doing it right:
/usr/bin/php /var/www/bims/index.php "projects/output" | rm
My goal is to delete whatever file names the PHP script outputs. What should be the proper way to do this?
Thanks!