Currently my scripts work perfectly within the schedule that run at specific times within my server's cron.
The problem is occurring when I try to execute the method inside the controller, this method basically uses a shell_exec () that executes a script in python and this return is what I deal with Laravel.
When I call it from the console or the schedule it works correctly, but when I call the method or even a \Artisan::call('schedule:teste');
it returns the same error saying that it is not encountering the geckdriver.
WhenIrunitinsidetheterminal:itworksperfectly:
ThescriptinPythonisthisone: treasure_direto_precos_taxa_tipulo.py
From what I'm noticing when I run the command inside the controller, it is not using the path of my system. The question is why?
From now on I thank you for all your help.