Re: [PHP] CLI script & exec() - how to control what gets dumped on the screen.



Jochem Maas wrote:
I have been trying to figure out how to use exec to run some commandline
scripts (some perl scripts & mysql in this case) WITH the output of the commands
run via exec being shown on the screen.

have you tried shell_exec ?

clive
.



Relevant Pages

  • Odd sql quoting behaviour in stable after updates?
    ... missing several security updates. ... The updates included perl and mysql. ... Approximately 3.5 hours later some perl scripts began malfunctioning, ...
    (Debian-User)
  • Re: MySQL upgrade caused Perl coredumps...
    ... several of my Perl scripts that access the MySQL database began to fail ... Before you go about with that, you should move up to a production release of MySQL, such as 5.0.2x ... ... If nothing else, because the 2.9x series will fail to connect due to MySQL user password hashes having changed in length between 4.0 and 4.1, which affects database users created after the switch. ...
    (perl.dbi.users)
  • Re: DBD::Oracle test failure under DBI 1.49
    ... so that Perl scripts can work faster with MySQL then with Oracle. ...
    (perl.dbi.users)
  • Re: DBI not connecting
    ... > I have perl scripts that using DBI to connect to MySQL. ... > PHP scripts working fine and I can connect to MySQL via 'mysql'. ...
    (perl.dbi.users)
  • Re: Limiting User Commands
    ... > Perl scripts and get Apache to execute them without restriction - the ... > Perl script could call commands that I want to ban the users from ...
    (Debian-User)