Page 1 of 1

Not working in my server.

Posted: 2012-10-26T00:33:12-07:00
by anandselvaraj
Hi,

please help me guys,,,, I am new in this topic. How to run bash script in php. i used like this


$response = exec('-t "SOME PLAIN TEXT" -s plain -e normal -f Arial -p 48 -c royalblue -b white -u lightpink'); //executing shell command.

echo "<pre>$response</pre>";


I didn't get any output.

Re: Not working in my server.

Posted: 2012-10-26T02:50:43-07:00
by Bonzo
Is this one of fmw42's scripts?

You need to have the full path to the bash script and CHMOD it to 777

Code: Select all

exec('/FULL PATH TO /bash_script -t "SOME PLAIN TEXT" -s plain -e normal -f Arial -p 48 -c royalblue -b white -u lightpink');  
You also do not have an output file.

Re: Not working in my server.

Posted: 2012-11-01T05:52:51-07:00
by anandselvaraj
Thanks for your reply. Its working properly.

Re: Not working in my server.

Posted: 2012-11-01T11:25:49-07:00
by fmw42
Please note that if you are using this script in a commercial web site, then you must contact me for a license. Please see my home page at the link below.