Questions tagged [execution]

20 questions
8
votes
3 answers

run shell command as other user called by PHP

I have a PHP script which is called by HTTP and not as command line script. This script should call a shell command as an other user than the current webserver user www-data. Example:
powtac
  • 639
  • 2
  • 6
  • 19
5
votes
3 answers

Can I run a shell built-in command with Puppet?

I want ~/.bashrc will be source whenever changing its content. I created a bashrc class with something like this: file { "/root/.bashrc": ensure => present, owner => root, group => root, mode => 0644, source =>…
quanta
  • 50,327
  • 19
  • 152
  • 213
5
votes
4 answers

How to execute a system-wide script upon any ssh login (with OpenSSH)?

Upon any ssh login/connection (anybody logging in through ssh), is there a way to have a script executed? Using OpenSSH server. The script should not be modifiable by any of the users, -- of course --, so this should be a system-wide…
Weboide
  • 3,275
  • 1
  • 23
  • 32
3
votes
2 answers

mongod cannot execute in ubuntu

I am installing mongodb on ubuntu terminal from this url (http://mongojs.org/install-mongodb-ubuntu-11-04-natty) I am on the step where you type in ./mongod when I type that I get the following: bash: ./mongod cannot execute binary file error …
user1522901
1
vote
0 answers

Run application from network drive takes long

This problem started recently, and I wasn't able to find a solution. Not even formatting solved. We have a program on our network drive and the Whole company accesses to this single exe. Usually the program starts up in a few seconds except for one…
sharkyenergy
  • 121
  • 4
1
vote
1 answer

What could be causing the script execution policy to change on Windows Server?

We have some Nagios checks that connects to a Windows server and runs a script. This script is not signed, and our admin had set the script exeuction policy for the server, about a year ago, to... unrestricted I believe. Whatever policy is the least…
Larold
  • 802
  • 4
  • 13
  • 21
1
vote
2 answers

Rsync : execute permission required

I'm using rsync between two servers to transfer files. The problem is some files are not transferred. I get this error : rsync: readlink "/var/www/index.html" failed: Permission denied (13) So I check permissions on the server and after make tests,…
user651488
1
vote
1 answer

Is it possible to log php script execution time server-wide?

Is there a way to log execution time of any php scripts running on a webserver? The server is setup similar to a shared hosting setup, except that our customers don't control their hosting or websites. I'm hoping for a way I can use either the…
CWSChris
1
vote
4 answers

PHP script times out earlier than max_execution_time

I am testing a page generated by a script that performs some operations and redirects to another script. It times out at ~ 60 seconds although the max_execution_time is set to 300. Other revelant settings could be: mysql.connect_timeout …
siliconpi
  • 1,707
  • 6
  • 30
  • 45
0
votes
1 answer

CRON starts to skipping to the next minute

I am setting up single minute crons to the crontab via a bash script for a load testing purpose. There is no issue with the script executing and the crons are added up and i can monitor crons are being executed via the /var/log/cron. But the issue…
CK LZEM7
  • 3
  • 3
0
votes
1 answer

How to record/log query execution stats for long running SQL Queries?

I work on a system that comprises of a SQL Server 2012 DB server that is queried frequently with complex queries. Sometimes these queries take more than 2 or 3 mins to return. How can I record or log the execution plans for these queries when they…
Bhaskar
  • 141
  • 1
  • 5
0
votes
1 answer

Deal with dashes and spaces in T-SQL String functions

I am searching for the occurrence of a string in a field on a table. The search statement is done through dynamic sql with my statement template looking like this. SET @sSQL = 'UPDATE #tempProcsAndJobs SET ' + @columnName + ' = 1 WHERE…
Black Dynamite
  • 483
  • 2
  • 5
  • 15
0
votes
2 answers

CentOS - binary won't run unless typed with absolute path

I'm not sure if it's a quirk of the program I'm trying to run (amidelnx) or if it's something with the way some binaries in general function. Also, I've read this question but it is not the same as what I'm experiencing. The binary runs fine when…
Locane
  • 409
  • 1
  • 7
  • 20
0
votes
4 answers

How to make bash script executable for a user, but not readable

I'm trying to run a script at login that will execute for a regular user, but not be readable by that or other non-root users. I've tried various things including chmod/chown combinations, as well as visudo. In all cases, I can either execute the…
Senrabdet
  • 81
  • 3
  • 9
0
votes
2 answers

Creating executable file to duplicate folder and set owners

I'm not a (web)server expert, so I need a little help with the following question. I realy couldn't find a answer via Google, probably because I'm using the wrong keywords. I would like to know if it's possible to create a file somewhere on the…
1
2