Search found 5 matches

by tomolas
Fri Mar 20, 2009 7:34 am
Forum: PHP - Code
Topic: stdout redirect in exec function
Replies: 1
Views: 110

stdout redirect in exec function

Hi. I have a little problem redirecting the output of program called from exec function in php. Simple example:   $output = shell_exec('ls -al &>my_file.txt');   ls -al will of course be replaced with something else later. I know that the output this produces will be in $output BUT, i don't know...
by tomolas
Mon Feb 23, 2009 3:26 pm
Forum: PHP - Code
Topic: Real time output from shell_exec() or similar
Replies: 4
Views: 1278

Re: Real time output from shell_exec() or similar

Hi ! I'm solving the same problem here. Have you solved yours already ? Maybe you can give me a little hint.. I am trying to create a progress bar of such long time taking process in javascript/ajax. So i need something to read data from pipe as it is being written line by line in real time. I'm goo...
by tomolas
Thu Jan 31, 2008 10:53 am
Forum: Linux
Topic: Create content to serve with other program
Replies: 4
Views: 2295

Re: Create content to serve with other program

Thank you! I think this is exactly what I was looking for. It will need a deeper look I suppose, but first impression is perfect.
:)
Thank you
by tomolas
Mon Jan 21, 2008 1:15 pm
Forum: Linux
Topic: Create content to serve with other program
Replies: 4
Views: 2295

Re: Create content to serve with other program

yes.. a web interface - exactly. I want to tell the program what to produce from my web page.. and then serve the result back on the page.
The picture producing program allready exists. I just want to enable it to be used on internet.

Thanks
by tomolas
Mon Jan 21, 2008 5:40 am
Forum: Linux
Topic: Create content to serve with other program
Replies: 4
Views: 2295

Create content to serve with other program

Hi everyone! problem: Imagine I have and application taking a text file as an input (it will be a description of an object i want to render) and producing a picture(render) and some other file(lets say .txt) as output. (User on page will create the input file by making few click selections - like a ...