i want running bash script with passing 2 parameter and show with bash script create file.txt
$email = "omdik";
$password = "123";
$page = shell_exec("/var/www/html/aktiva-development/test.sh $email, $password");
and this file test.sh
#!/bin/bash
echo "username : $1 dan password : $2" > /tmp/cekhasil.txt
why the file not create, like the bash command is not running, but if script bash like ls dir the dir list will be show, and the access permision for file and folder i was change to 777
thank you for help.
shell_exec(‘/var/www/html/aktiva-development/test.sh “$email”, “$password”’);