exec

Have Hudson call multiple exec:java with profiles

Hi, I have a maven pom in which I've define some profiles. Each profile defines its own configuration for executing an exec:java goal. This exec:java invokes a java program that will do some work, which does not relies upon artifact compilation (but what I find very useful to put in maven pom). What I would like to do is have Hudson co...

Check if "exec" is disabled

Is there any function in PHP that I can use to detect whether or not the exec function is available? ...

php multi exec is slow (19 minutes?)

Hi all, I have a curl_multi_exec call to about 500 sites which it calls via an array loop: I am using the simplified code: http://github.com/kminkler/php-curl-multi/wiki but it gets VERRRY slow (19 minutes) towards the end... do I need to remove the handle every time is this a memory issue; Would you rec. writing a C++ curl routine...

launching terminal from application

I have created an application using Netbeans 6.9. In the application I want that when the user clicks on the run button then the terminal(Command Prompt) should open and some text should appear on the terminal. The text is actually a command. I want that the command should be executed on the terminal. Can anyone please help me. I've wri...

Java - Run Excel using runtime.getRuntime().exec

try { Runtime.getRuntime().exec("excel C:\\file.xls"); } catch (IOException ex) { System.out.println(ex); } Doesn't work. I have to put the full path of excel.exe in order to work. How can I make it generic (For any Excel Folders/Versions)? When I run the same line from OS with Windows Run (Start --> Run) it works. Is there a c...

shell_exec slow with php

Hi all I have a curl script multi that helps index my site every 10 minutes it pushes to a mysql db so I can search my site for users The script uses 2 MB per instance (which isn't bad) however every time I run the script it slows apache down ( i have a UNIX server) so badly it takes 30 seconds to search... I keep the mysql db conn...

Environment variable problem using java

Steps using runtime api echo %PATH% (output will be something like "c:\windows\system32;d:\test") execute ping or any system command, the output will be success delete one value for the path like d:\test echo %PATH% (output will be "%system32%\system32;") Now if I execute the same command executed in step 2 like ping, then I get "comma...

how use replace in exec statement in sql server 2008

Hi, I have a stored proc, say, "call_Me" with few parameters: Declare @Greet varchar(100) = 'Hi ||User||' Exec Call_Me 1,'something', @Greet --parameters: bit, string, string during the call, I want to be able to replace the ||User|| bit with something else. normally, in a select statement, I would do this: select 1, 'somethin...

how to test if PHP system() function is allowed? and not turned off for security reasons

Hi! I would like to know how to test if system() or exec() is allowed on a server. I keep getting this error "Warning: exec() has been disabled for security reasons in ..." I understand that the safe_mode function is depreciated in the php version my provider runs (5.3.3) so i cant use a get_ini('safe_mode') check. What else to do? I...

nettiers Utility.DetectSqlInjection flagging wrong words

We are using .nettiers as our DAL and also using the Utility.DetectSqlInjection for extra security. We hit an odd error today, Someone tried to enter "Executive" into a title textbox, and the Utility.DetectSqlInjection is saying this is an injection attack. It looks as thought it is seeing the "EXEC" command used to execute sql command...

Regex returning a value in IE, 'undefined' in Firefox and Safari/Chrome

Have a regex: .*? (rule1|rule2) (?:(rule1|rule2)|[^}])* (It's designed to parse CSS files, and the 'rules' are generated by JS.) When I try this in IE, all works as it should. Ditto when I try it in RegexBuddy or The Regex Coach. But when I try it in Firefox or Chrome, the results are missing values. Can anyone please explain what t...

Passing constants as arguments in INNO's Exec()

I have created an installer using Inno Setup in which I am executing an exe that I created to create a small service inside Windows XP. I need to pass two arguments to the exe - "-install" and the path of the installation directory. I have no way of expanding the constant {app} to pass the actual value inside of {app}. Is there some way ...

SharpSSH JSCH exec command & symbolic link

Using the Tamir.SharpSsh.jsch I am trying to run a custom command in VB2005. so i opened an "Exec" channel and setup the command "dumper df_500.bin". it returns a response that dumper does not exist. so I tried doing the exact same command in a command window in Tunnelier and it works in that environment. the only thing special about thi...

Codegeneration vs text string evaluation

What are the advantages and disadvantages of the following approaches to the management of repetitive code: 1) Use exec(), eval(), and similar functions in other languages for Keyword in KeywordsUpperCase: exec(Keyword + " = \"" + Keyword.lower() + "\"") 2) Use external code generator which uses its own language (which is interle...