NYCPHP Meetup

NYPHP.org

[nycphp-talk] best way to run script?

Mitch Pirtle mitch.pirtle at gmail.com
Mon Jul 20 08:38:45 EDT 2009


You can take a look at phing, a php buildtool inspired by apache's ant:

    http://phing.info/trac/

You can use phing with the ssh2 extension and do what I think you are
trying to do.

-- Mitch

On Mon, Jul 20, 2009 at 12:13 AM, Konstantin Rozinov<krozinov at gmail.com> wrote:
> Hey guys,
>
> I'm trying to run the same php script via the command line interface
> on several remote servers.
> I'd like to do it securely preferably over ssh.  Right now, I'm using
> the ssh2 class from php, but getting very inconsistent results
> (sometimes the script runs, sometimes it doesn't via ssh2_exec)
>
> What do people use to run scripts on production machines?
>
> Thanks,
> Konstantin
> _______________________________________________
> New York PHP User Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/show_participation.php
>



More information about the talk mailing list