Categories
-
Recent Posts
Archives
Tag Archives: bash scripts from php
How to run the shell or bash scripts from php?
I have a bash script that I want to be run from php using a passthru function. if you don’t need any output you can use shell_exec or exec without escapeshellcmd function $command=’/bin/bash /copy_images.sh ‘; $escaped_command = escapeshellcmd($command); passthru($escaped_command, $output); … Continue reading
Posted in Debian&Ubuntu, Technologies
Tagged bash scripts from php, shell scripts
Comments Off on How to run the shell or bash scripts from php?