I am using the laravel Task functions to run some code using phantomjs and then using the output.
This is a part of the code I use:
private static function phantomjs($file, $c, $a)
{
SSH::run(array("phantomjs " . base_path("phantomjs/" . $file)), function($line)
{
$json = json_decode($line);
DataHelper::saveJson($json);
}
}
Whenever I run the command I get the following error on this piece of code:
[ErrorException]
Expected SSH_FXP_VERSION
If I output the ssh command and run it in a terminal myself it works just fine.
I am using Debian 7.6 on my server.
Thanks for helping. :)
I think the suggestions at http://stackoverflow.com/q/26886519/569976 are sound. ie. you likely don't have an SFTP service running.
I guess we can verify by doing define('NET_SSH2_LOGGING', 3)
and then posting the result.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community