Omgili - forum search, search forums  
  

Discussions about exec function

Displaying 1 - 10 out of 6,089 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
Let's say I have a process "A" that loads a dynamic library "L". Q: Is there a way to disable access to the "exec" functions to functions inside "L"?
Started by on , 5 posts by 5 people.  
Of the C library that contains the exec() functions as non-executable) that might get the effect you want version of exec() and system() that do what you want (or don't do), and either LD_PRELOAD it, or pass.
Why can I not change global variables from inside a function, using exec()? It works fine when the assignment statement is outside of exec(). Here is an example of my problem: >>> myvar = 'test' >>> def myfunc(): ... global myvar ......
Started by on , 4 posts by 4 people.  
How about this: >>> myvar =....
>>> myfunc contents.
exec 'myvar="boooh!"' in globals() ...
Per the docs , the exec statement takes two optional expressions, defaulting to globals/precise...: >>> def myfunc(): ...
Echo "sed -i 's/NULL/\\N/g' ".$_REQUEST['para'].".sql"; The above statement works. But it fail when I use it in exec like this... exec("sed -i 's/NULL//\/\/\N/g' ".$_REQUEST['para'].".sql");
Started by on , 4 posts by 4 people.  
You should escape backslashes with backslashes, not with forward slashes, like this: exec("sed($_REQUEST['para'].".sql"); if(!is_writable($file)) throw new Exception('bad filename'); exec("sed.
Ask your Facebook Friends
Hi All, I developed a program on windows xp and I used exec to run a ".bat" file and it worked fine. I copied the exact program on windows 2003 and the bat file didn't run. I used echo before the exec function and it seemed to work fine, I mean it echoed...
Started by on , 3 posts by 3 people.  
You either need to turn safe mode off or add that directory to the safe_mode_exec_dir in PHP.ini From the manual Note: When safe mode is enabled, you can only execute files within the safe_mode_exec_dir.
I am currently trying to figure out how to connect to another server via SSH using PHP's shell functions. I have a site where I have to pass data from PHP to a custom command line program, then return the output. On the old server I was using, this was...
Started by on , 4 posts by 4 people.  
They are similar to exec()..
After that - its simply a matter of writing, but did you consider the PHP core functions passthru() or system().
(...) is the only php function you can use to run ssh.
I am using this php code: exec("unrar e file.rar",$ret,$code); and getting an error code of illegal command ie 127 ... but when I am using this command through ssh its working ... because unrar is installed on the server ... so can anyone guess why exec...
Started by on , 4 posts by 3 people.  
Where php file is chdir("somedir"); exec("/home/username/bin/unrar e /home/path/to/dir/file.rar working :) exec("/home/user/bin/unrar e /home/user/xxx/yyy/file.rar");.
Hello I have a couple questions about PHP exec() and passthru(). 1) I never used exec() in PHP but I have seen it is sometimes used with imagemagick. I am now curious, what is some other common uses where exec is good in a web application? 2) About 6 ...
Started by on , 4 posts by 4 people.  
Use exec or ....
So if you have a large amount of processing that needs to be done quickly, exec() could be useful.
exec() allows you to use compiled code that is on your server, which would run faster than php, which is interpreted.
I want to execute some Python code, typed at runtime, so I get the string and call exec(pp, globals(), locals()) where pp is the string. It works fine, except for recursive calls, e. g., for example, this code is OK: def horse(): robot.step() robot.step...
Started by on , 5 posts by 5 people.  
It works for me: a = """\ def rec(n): if n > 10: return print n return rec(n+1) rec(5)""" exec(): glob = {} a = """\ def rec(n): if n > 10: return print n return rec(n+1) rec(5)""" exec print n return rec(n+1) rec(5)""" exec....
CDirScan function NextL raises "Main Panic KERN-EXEC 0" if it is not called right away SetScanDataL() (i.e. if it is called later within the same active object after another event) f1() - called within active object iDirScan = CDirScan::NewLC(aFs); iDirScan...
Started by on , 3 posts by 3 people.  
Generally, KERN-EXEC 0 panics parts of code are in different functions f1, f2, or both are in one function f1, this is not clear for me? Also if iDirScan is part....
I wrote some test code in an attempt to reproduce this but couldn't .
I would like to create a SP or UDF where I supply a table and column name as a parameter and it does something to that target. I'm using Sql Server 2005 Trivial Example of what I'm trying to accomplish: CREATE FUNCTION Example (@TableName AS VARCHAR(1...
Started by on , 3 posts by 3 people.  
Sadly? You could dynamically redefine a synonym, but that still requires an EXEC and you lose concurrency (col1 int) insert #table values (1) insert....
Can't do it.
You would still need to use EXEC to do this.
This reeks of SQL injection.
Page: 1   2   3   4   5   6   7   8   9   10  
Related Searches
r6025 pure virtual function call backup exec   
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost