The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
22 views

Script out SQL Job Create Statement Without SSMS

Does anyone have an idea of how to generate the Create statement for a SQL Agent Job? I've looked everywhere, and I can't seem to find a search result that doesn't involve using SSMS and going ...
0
votes
1answer
25 views

Strange behavour of which in a shell script launched as a forked process

So I have a java process that is doing some automation. One of the things it has to do is find the JDK home on random machines. So I wrote a shell script to try and find the JDK home assuming that ...
-1
votes
1answer
64 views

Multiple Background Processes at Single Line Works in The Foreground

I want to convert an uploaded PDF file to JPG images and zip these images after convert process finishes. I use the ImageMagick library's convert command for PDF to JPG conversion. To accomplish ...
0
votes
0answers
125 views

php exec failing cpanel

I'm using unoconv to convert documents to PDF via a php script. When I call the script from the browser, the script outputs the following (and fails): array(11) { [0]=> string(48) "Office base ...
0
votes
0answers
49 views

What purpose does the unixbench 'execl' measurement serve?

This is one of the standard suite of measurements that unixbench takes. Definition: Execl Throughput This test measures the number of execl calls that can be performed per second. Execl is ...
1
vote
3answers
231 views

Limit Exec Commands for Linux Users

How can I limit the scope of executable commands a linux user can run? For example, I only want user to be able to run the ls command and nothing else. If tried, for example to run cat, linux would ...
-4
votes
2answers
139 views

Run a script.sh with www-data like it was root user [duplicate]

I need to get all mac Addresses from my network-card. So i use nmap from Debian, combined with PHP. But, without root privilege, this only gives me the IP address and status from a target. With root ...
1
vote
1answer
66 views

Results of not using '{}' in find /mnt/tmp -atime +91 -exec rm -f {} \;?

I have been using the following code for the longest on a system I took over: find /mnt/tmp -atime +91 -exec rm -f {} \; However, researching further I see everyone saying the curly braces should ...
0
votes
1answer
92 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
2answers
257 views

How to get a files selected for backup list from Symantec Backup Exec 10d

How can I get a list of the files selected for backup from Backup Exec 10d? I have a number of workstations with files being backup up by Symantec Backup Exec 10d, I need to provide a list of the ...
-1
votes
2answers
59 views

Better way to exec at a specific folder

It is possible to exec at the specific folder, rather than I need to use two commands separately? e.g. cd /opt/folderA exec .... cd /opt/folderB exec ....
1
vote
1answer
67 views

How do I exec finger with puppet?

My puppet file looks like this: # Test finger harry harry.pp exec {'harryd': ...
0
votes
1answer
221 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, ...
2
votes
1answer
858 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 ...
1
vote
1answer
193 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
157 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
894 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
913 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
3k 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
466 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
493 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
785 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
242 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
152 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
3answers
4k 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 ...
4
votes
1answer
372 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
89 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
1k 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 ...
2
votes
4answers
2k 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
299 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
1k 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: ...