exec is a functionality of an operating system that runs an executable file.

learn more… | top users | synonyms

0
votes
4answers
2k views

CGI error from PHP when running exec() on IIS

Windows Server 2003 x64 PHP 5.2 IIS 6.0 The program Ink2Png.exe is set with Everyone->Read and Execute permissions. As does its dependency (microsoft.ink.dll) PHP Safe Mode is off exec() is ...
1
vote
2answers
367 views

Is it ok for php sites running Magento to have the exec function enabled?

We offer a service for Magento sites that requires installation of a Magento extension. For large sites, this extension needs to run a background process which requires the exec function. Our ...
0
votes
2answers
15 views

How to direct errors from with a find exec command to a log file

Hi I have the following command that does yui optimizations and runs as a cron job. I want to log the output of the command to a log file. find . -type d -exec bash -c "cd '{}' && pwd &&...
1
vote
1answer
135 views

sudo start my-project does not work

I'm using the following script in /etc/init/my-project.conf on my AWS instance. description "start and stop the go program 'my-project'" start on filesystem or runlevel [2345] stop on runlevel [!...
0
votes
1answer
85 views

mysqldump (using PHP exec) not dumping file but no error

I wasn't sure if this was a SO or SF question but I thought this might be the best place. I apologise if it is not! I am using mysqldump through PHP exec but it doesn't seem to be working. The code I ...
0
votes
1answer
213 views

Executing a command as apache

This script keeps outputting a 1. and I cannot understand why. <?php passthru("nohup sudo rndc reload sd.example.com",$op); print_r($op); ?> I have also tried the above code ...
0
votes
1answer
239 views

Monit runs exec action too often

I've written a script which sends me an sms notification. I call with exec action in monit test. It works, but I'm getting overwhelmed by messages. Is there a way to suppress sending subsequent ...
0
votes
1answer
302 views

Shell script Process PID logging and maintenance using exec

I am trying to launch a java process as a server and then might periodically need to restart/kill it at certain times. Since I use a shell script to launch java jvm(to build classpath), I thought of ...
0
votes
0answers
279 views

PHP exec() Returns 127 When Trying To Run Any Command

I'm an intermediate Linux user (CentOS, some Debian) who is transitioning to FreeBSD (10). Permissions have always been somewhat confusing to me. I've set up a server with PHP-FPM (5.6) and Nginx (1....