21 Topics
|
|
hello guys its been a while since my last question here :P am working right now on PHP script to upload and convert video files to several resolutions ( 360 - 720 ), here a piece of my php code to convert move_uploaded_file($file_tmp, 'upload/'.$fileName); add_to_queue($time,"360-".$fileName,$status="pending"); //where add_to_queue is simple function … |
|
I'm creating an application that with continuously attempt to run a list of programs until they are open. I'm having an issue when it comes to programs that require administrative priveleges however. I've done some searching and found the below script (in createElevationScript()) that *should* run a program with administrative … |
|
How do I use pipes to communicate with another proccess that is being run using an execl command? I know how I can send info to that process but how do I get info back from that proccess? Some more information on what Im trying to do: I am trying … |
|
Hello. I need to set up some pipes for a homework assignment as part of a bigger project. The issue I'm having is that the array (args) I'm using to populate the pipe arguments keeps segfaulting and I don't know why. Everything has been malloced beforehand and the faults only … |
|
HI, I am trying to convert an audio file that is in wav format to mp3 format. I have installed apache and I am using windows 8. I downloaded the files for ffmpeg and tried to run the php script and convert the file but no success. What I am … |
|
I'm trying to execute a binary on my Linux web server. The binary is called 'phantomJS' which is used mainly to create screenshots of a webpage. I logged into my cPanel and found the following information about my server: Operating system : Linux Architecture : i686 So I went ahead … |
|
|
Hi All. Have been messing around with PDO for a while, but have come across a bit of a quandry. I like the prepare - execute method for fetching data, but I needed to check if an update query actually did update or not. Now not having mysql_affected_rows() to hand, … |
What this produces and why? >>> a = 2 >>> b = 5 >>> exec "print(a+b)" in dict(a=6, b=9) |
|
Is it possible to run command line exec in the foreground instead of the background with PHP? |
|
I seem to be having a major problem with FFMPEG on my local test server everything seems to work fine the videos encode and everything. I moved all of this onto my new Windows 2008 Web Server, which uses IIS 7 and everything works I get no errors or anything … |
|
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); |
|
I am trying to run the following perlscript from php page. But unfortunately, it failed without giving any error. exec("PERL C:/Program Files/Zend/Apache2/htdocs/Scripts/test.pl"); But when I am trying the same perl command from command line interface, it runs successfully. PERL C:/Program Files/Zend/Apache2/htdocs/Scripts/test.pl Can anybody advise, where i am making mistake? I … |
|
Hi, At the moment I am trying to open a log file with notepad.exe while the original process continues. As I am developing for Windows, fork() is not available for me. I googled alot and found a good reference to opening processes ([url]http://www.yolinux.com/TUTORIALS/ForkExecProcesses.html[/url]), however they all put the original process … |
|
hi, how to call exe file with some parameters from java and save the output of the exe file in a specified path. Please let me know immediately..its urgent!!! I am using the following code : I want to save the file after running this DPAnalysis.exe on jan.xls into my … |
|
Here is code to execute these printing commands from file: [CODE]talk("How Are You") bark("I am fine") bark("...and how are you") snarl("...sorry I asked") [/CODE] from file INPUT, do printing of results to screen without tags and to file with tags, and open the html output with webbrowser. |
|
Hi All, I wonder if anyone could help? I have a large Java program which needs at various points to run UNIX commands. The only wayI have found to do this is below (although I would have liked the program to output all terminal commands into the same window (shell) … |
|
Hi everyone, I'm a moderately experienced C coder trying to figure out the [B]execve()[/B] command. Here's the basic problem: My program takes a command from the user, loaded into the string UsrCmd. The string is tokenized and each token is loaded into ParaArray[]. Then ParaArray[] is used as arguments to … |
|
How can I get results from exec()? Any suggestions appreciated!!! [CODE] #!/usr/bin/python import socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) host = socket.gethostname() port = 1234 sock.bind((host,port)) while True: cmd, addr = sock.recvfrom(1024) if len(cmd) > 0: print("Received ", cmd, " command from ", addr) exec(cmd) # here how I can get … |
|
hi, i have problems using exec(), I need to pass a set of numbers using exec to another program that is supposed to use them to calculate something,,, i dont know how to pass them any suggestions?? |
|
Hi, I want to take a command with its options as input and execute it with one of the exec() functions. My approach is to take input first and put it in an array by dividing with string tokenizer. Then I call execvp() which takes the array including the command … |
|
I want to launch a new process from a given string of input (including parameter). I tried to use system() but it appears that in the child process, getppid() is not the same as the caller in some runs (probably because system uses the shell as command interpreter). However, if … |
The End.