Jump to content

fibokowalsky

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

fibokowalsky's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I want to enable running some program (namely, trale - grammar checking program) on the web page. On my Ubuntu OS I run the program in terminal and give inputs in terminal too. - So I want to run the program in terminal by and feed with inputs by PHP, also display outputs in HTML. shell_exec() function was not helpful since after executing the script for running the program $foo = shell_exec('trale -sag'); I can not use the same function for giving inputs to the program, the successor commands are executed in new terminal where trale in not running. && and ; separators for the bash commands does not work as after the first command (running the program) next commands are executed only after the running program is halted. Is there some shell object for PHP in which I can run several commands without losing the previous states?, e.g. ~$ trale -sac #running the program |: <some input for trale> # trale is already running I also found the simulation of terminal in PHP (PHP Terminal © bzrudi 2004) but it does not save previous states of the terminal. - thanks in advance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.