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



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2H37y04
via IFTTT

Aucun commentaire:

Enregistrer un commentaire