Re: Cannot run exe from asp.net Programming Web Development by lennyli ….Run(command, 1, True) 'result = objShell.Run(command) 'result = objShell.Exec(command) ' Clean up Set objShell = Nothing ' Output the result Response… exec and exit Programming Software Development by invinate …var is False. The problem is that the exec job is also running in a loop and … it finish and right now it seems that exec never finishes if i put a condition with …I put the os._exit then everything finishes, the exec, the new thread and the main thread. But …i need something that only stops exec and moves on (and the new thread finishes … Re: exec and exit Programming Software Development by invinate …(not jobterminated ): # do stuff[/ICODE] runjob: [ICODE]... exec(job,arglist,arglist) # The code after exec does not execute!!! jobterminated = True[/ICODE] I… python script), but still it doesnt reach the code after exec exec function in python 2.4 Programming Software Development by rajivgupta1107 … 2.4 on linux machine. I am using exec funcation as: objconfigfile=open(path, 'r') for… line in objconfigfile.readlines() if line == None: continue exec(line) It is throwing exception as: invalid syntax for …"exec(line)" Please let me know the issue… Exec args Programming Software Development by Thropian I'm trying to use the exec command in python to try to get a function to … "Game Files\Intro.py", line 214, in Anim exec compile('%slegs = ImageTk.PhotoImage(Sprite%s["legs0"])'%(name…,name), '<string>', 'exec') in Anim TypeError: exec: arg 2 must be a dictionary or None are… exec function on Windows XP Programming Web Development by rinko I am using Apache 2 with windows web server 2003 on the windows XP. I have problem using exec() command. My safe_mode is off. Does anyone know what can be the reason why exec() does not function? It is interesting that immediately when I restart the Apache server exec() command is carried out but only once. Re: exec function in python 2.4 Programming Software Development by vegaseat I found a copy of 'movable Python24' on one of my flash drives, and this works ... [code=python]# excute a code string s = 'print "Hello!" ' exec(s) """my result --> Hello! """ [/code]In answer to your question, Python24 has the function exec(). Re: exec function in python 2.4 Programming Software Development by woooee There is an error on this line, no colon for line in objconfigfile.readlines() I would suggest that you print every line because if line == None: will probably never be true, but you will have to print it and see. Also, exec(line) expects "line" to be a valid python statement. Re: Exec args Programming Software Development by Gribouillis It means [code=python] exec mycode in mydictionary [/code] exec() command and PATH issues Programming Web Development by LeBurt Hi all, I'm using exec() to launch external commands from a web application under OS …. To put my problem in context, when I launch this: exec ("export", $output); I get this: export OLDPWD export… exec problem Programming Web Development by swapna7999 … an to invoke it in a php page i used exec('app.exe'); but before this statement i have a lot… are displayed. echo "swapna"; echo "aladdin" exec('app.exe'); when i run this first the app.exe… exec() function help Programming Software Development by knshn … options as input and execute it with one of the exec() functions. My approach is to take input first and put… below. [CODE]ls: invalid option -- ' ' [/CODE] I tried with different exec() functions just giving second element of array and giving path… Exec() Command and Resource Wastage Hardware and Software Linux and Unix by Umar Ali …="Green"][I]Hi guys I'm familiar with exec() and fork() commands and their working, but I don't…, which is achieved by the child process invoking the POSIX exec() system call which replaces the invoking process with the image… Exec() function doesnt take parameter in hosted server Programming Web Development by benqb …;?php $out = array(); $execute='./test.py'; $name="test"; exec("$execute $name",$out); foreach ($out as $value) { echo… code in local server its working.. But in hosted server, exec () function doesn't take the parameter variable '$name'. why… Re: Exec() function doesnt take parameter in hosted server Programming Web Development by benqb … lot of shared hosting providers that block the use of exec() as it can be a possible security risk when using… commonly blocked are: system() shell_exec()[/QUOTE] In my hosted server exec() function is working but it cannot takes the parameter '$name' Re: Exec() function doesnt take parameter in hosted server Programming Web Development by pixelsoul Just out of curiosity, what happens when you replace your exec() command with this one? [CODE] exec('./test.py test',$out); [/CODE] Re: Exec() function doesnt take parameter in hosted server Programming Web Development by benqb [QUOTE=pixelsoul;1474954]Just out of curiosity, what happens when you replace your exec() command with this one? [CODE] exec('./test.py test',$out); [/CODE][/QUOTE] Same error exec bad access on fscanf Programming Software Development by guidely … know why when I run in xcode it give me exec bad access but when I run using terminal it work…[i].sMaxCap, &ship[i].sActCap, &ship[i].aTime); // exec bad access lineCount++; i++; } while (feof(shipfile) == 0); } void processing… exec / passthru / system execute commands but don't return any output Programming Web Development by n21115 Hi, I'm trying to execute some commands via the exec / shell_exec / system / passthru / popen PHP functions. The commands are getting …/file.zip; bye'" . " 2>&1"; exec ($command); ?> **Command(s) I'm trying to execute:** executes… Re: exec problem Programming Web Development by nav33n [code=php] <?php echo "hi"; ob_flush(); flush(); exec("taskmgr.exe"); ?> [/code] This works ! Re: exec problem Programming Web Development by swapna7999 [QUOTE=nav33n;610645][code=php] <?php echo "hi"; ob_flush(); flush(); exec("taskmgr.exe"); ?> [/code] This works ![/QUOTE] but its not working for the first time if i reload the same page then its ok but when i try to run it for the first time its not showing the echo statements Re: exec problem Programming Web Development by nav33n Umm..strange! I haven't used much of exec's. Lets see if someone else has an answer.. Re: Exec() function doesnt take parameter in hosted server Programming Web Development by pixelsoul There are a lot of shared hosting providers that block the use of exec() as it can be a possible security risk when using shared hosting. You should check with your hosting provider to make sure that this command is available to use on your hosting plan. Two others commonly blocked are: system() shell_exec() Re: Exec() function doesnt take parameter in hosted server Programming Web Development by benqb [QUOTE=pixelsoul;1476110]Are you able to SSH into the server and run the script manually? Making sure that you can execute Python scripts on your server?[/QUOTE] Python script is correctly working... Its the problem with exec() function Re: exec / passthru / system execute commands but don't return any output Programming Web Development by broj1 Have you tried to add a second argument that will hold the output of the command: $command = "/usr/bin/lftp -u username,password ftp.website.com -e 'set ftp:ssl-allow off; put /var/www/folder/file.zip; bye'" . " 2>&1"; exec($command, $output); print_r($output); exec() POSIX calls Programming Software Development by michinobu_zoned … some one direct me to a website that will explain exec in better detail? I don't really know what I… exec in java Programming Software Development by prateeksalian ….xls but not saving it anywhere . Please help Runtime.getRuntime().exec ("C:\\Program Files\\DP\\DPAnalysis.exe "+"E… exec not work in php Programming Web Development by naraza hello! i use this command and run it on localhost in my pc <?php exec('mspaint "C:\path\to\image.jpg"'); ?> and this $cme='notepad.exe'; passthru($cme); EXEC sp_cycle_errorlog Programming Databases by strRusty_gal Hi Everyone, Can anyone guide what is EXEC sp_cycle_errorlog? Is it safe to just manually delete the ERRORLOG in the C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG folder? This ERRORLOG is consuming too much space that is using up c drive. Can any advice? Thank you! Re: EXEC sp_cycle_errorlog Programming Databases by pritaeas > what is EXEC sp_cycle_errorlog? http://technet.microsoft.com/en-us/library/ms182512.aspx