I'm a noob so bear wtih me... I have ran into an issue where my Python script, which I start from Apache server by PHP, ignores all other arguments except the first one.
PHP GETS variables and uses them as arguments when starting the script like so:
echo exec( "sudo python3 /var/www/html/motor_arg.py $n1 $t1 $n2 $t2" );
The Python srip starts but everything except $n1
is ignored and
the scrip ends. When I run the script from shell like so:
python3 motor_arg.py 10 5 20 5
it works just fine...
I honestly have no idea why this happens. Any help is much appreciated.