subscribe

Running cli editor from php

I'm trying to run vim from the command line to edit database records using php.

However, both passthru() and system() both seem to not assign STDIN of the process to my console. Is it possible to do this? STDERR seems fine, as I do get a "Vim: Warning: Output is not to a terminal".

Web mentions

Comments

  • Noch

    Noch

    system("vim > `tty`");
  • Evert

    Evert

    Thanks man! That did the trick :)