The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
16 views

ip netns exec permission denied

I have a php script, say file.php that contains: <?php exec("ip netns exec vpn file2.php"); ?> If I run file.php via the command line, as root, it works. However, when I run it via apache, ...
1
vote
1answer
135 views

wkhtmltopdf call from PHP exec results in exit code 127 failure

Using CentOS 6.3x64. I'm trying to run wkhtmltopdf (from here) from a PHP script. I can successfully call wkhtmltopdf-amd64 directly via SSH. But when calling it from PHP via exec, it always fails ...
-2
votes
1answer
46 views

php exec() in JS [closed]

I would like to use PHP exec() on a web page with some JS variables Basically, what I would like to do is run the exec command to execute the YouTube-dl windows port and supply tags at the end from a ...
1
vote
1answer
110 views

Solaris 10 snmp exec multiple strings

I am trying to use snmp to query a directory listing. I have added the exec line to snmp.conf ("exec list /bin/ls /pathtodirectory") and restarted the service. When I perform an snmp walk for the exec ...
0
votes
1answer
84 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
0answers
30 views

Performance\Network-utilization differences between having one session and, multiple exec channels or one shell channel

I need to run multiple commands on limited-resources linux boxes. I need to know how much network traffic\cpu\memroy resources does it cost to have one session with either multiple exec channels for ...
0
votes
1answer
285 views

Need to execute script file using sudo - run from teamcity

I need to execute a script in Linux platform "runme.sh" (which can be executed as sudo user) using another ant script "build.xml". Now i have execute this build.xml from teamcity. I have code for ...
2
votes
1answer
315 views

How do I configure SSHd to permit a single command, without giving full login access to the user?

I am looking for best way to call remote command over SSH. I create user 'rpcall', generate new certificate and fill authorized_keys. Secure it little bit more with ...
0
votes
2answers
1k views

Puppet: exec onlyif value is not equal

I have a script that really only needs to be run one time on a server, i.e. at deployment time, but figured it would be best to have Puppet manage it. The script remaps several legacy user id's that ...
0
votes
1answer
248 views

Apache and PHP causing first exec call to be really slow (and OS X)

Consider the following PHP program: <?echo date("c"); `date` echo date("c");?> The backtick-operator `` simply executes the specified command via the shell. Output on my local windows-box ...
1
vote
1answer
268 views

ffmpeg fails inside PHP exec(); [closed]

I am trying to get info from a file with ffmpeg, if inside php I have this code: exec("ffmpeg -i ffmpeg_directory/4.flv"); Returns nothing, even tough same command inside SSH would print a large ...
2
votes
1answer
437 views

Fedora 15 PHP exec() does not work

I cannot run an executable by PHP exec() function. OS: Fedora 15 PHP safe_mode off PHP code is: $exe = "/tmp/defne/./CwCssUGxhjAc"; $result = system( $exe, $retval ); chmod 777 on /tmp/defne and ...
0
votes
1answer
154 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
2answers
103 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 ...
5
votes
2answers
3k views

Permission denied to remount tmp for exec

I'm running Fedora Linux on MediaTemple using their (ve) virtual Linux box. Pretty much a clean install (Linux **** 2.6.18-028stab089.1 #1 SMP Thu Apr 14 13:46:04 MSD 2011 x86_64 x86_64 x86_64 ...
2
votes
1answer
261 views

exec sudo and/or send signal to child

I would like to execute an application (gnutls-cli) as another user and send a signal to it (SIGALRM). Unfortunately this does not work: sudo -u myuser gnutls-cli -p smtp imap.gmail.com --starttls ...
0
votes
1answer
84 views

execute command on icmp request

I'd like to know how/if it is possible to get my linux (ubuntu) box to exec a command (script) on incoming icmp/ping (or other network events) requests? Like e.g. playing a "ping" sound when being ...
0
votes
3answers
664 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
4answers
1k views

php rsync with exec() not working

Why this: rsync -avz -e ssh /home/userneme/folder username@domain.com:/var/www/folder works from cronjob and this: exec("rsync -avz -e ssh /home/userneme/folder ...
0
votes
1answer
223 views

Exclude pings from apache error logs (ran from PHP exec)

Now, for a number of reasons I need to ping several hosts on a regular basis for a dashboard display. I use this PHP function to do it: function PingHost($strIpAddr) { ...
0
votes
2answers
729 views

php can't execute any external command?

We moved from Slackware to CentOS here, it was working fine then without notice, php stopped executing external calls such as calls to "wc" and "spamc". All such calls appear on error_log as: sh: ...