lundi 2 avril 2018

Run node.js script using "exec" Laravel 5.x

I need run this command from Laravel controller:

$command = “cd ../storage/app/public/movies && parse-torrent \“$torrent\” > info.json”;
exec($command);

but after this command, file "info.json" empty, nmp package "parse-torrent" installed globally



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire