shell_exec

Par zirby, il y a 8 ans


Bonjour,

Voila je rencontre un petit problème avec mon code.

$output=exec(Storage::disk('maj')->get("maj.bat")); return $output;

mon code maj.bat:

cd c:\xampp\htdocs\gescrem2 git status -uno

J'obtiens NULL à la sortie?

Alors que à la sortie de mon terminal, j'obtiens:

On branch master Your branch is up-to-date with 'origin/master'. Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: app/Http/Controllers/HomeController.php no changes added to commit (use "git add" and/or "git commit -a")

Une petite aide,( je travail en localhost)

Merci

1 réponse

zirby, il y a 8 ans

Désolé pour ce post. J'ai trouvé la solution.