I have a script, written in C, which requires 3 parameters: host, name, password, like this:
./myscript 1.1.1.1 name mypassword
I call this using PHP exec command (need to, functionality not found in PHP).
exec('./myscript $host $name $password');
In linux, using ps command, I can see:
./myscript 1.1.1.1 name password.
How can I hide my password, that you can't see it on linux using ps?
Thank you.
./myscriptor can it be run by another process ie. you need know data returned from it if so add&should do the trick like soexec(./myscript $host $name $password &')this will basically spawn another process to handle exec ... (similar to a thread in this situation)