#!/usr/bin/env php parseStandardArguments(); $args->parse(array()); $allocator = new DrydockAllocator(); $allocator->setResourceType('webroot'); $lease = $allocator->allocate(); $lease->waitUntilActive(); $cmd = $lease->getInterface('webroot'); echo "URI: ".$cmd->getURI()."\n"; $lease->release(); die("Done.\n"); $i_file = $lease->getInterface('command'); list($stdout) = $i_file->execx('ls / ; echo -- ; uptime ; echo -- ; uname -n'); echo $stdout; $lease->release(); // $i_http = $lease->getInterface('httpd'); // echo $i_http->getURI('/index.html')."\n";