Hi
There is exe file called htpasswd.exe used by apache server and this file is located under \bin\ directory.
Using the following code I can open and communicate to htpasswd.exe from command prompt easily.
$cmd_add_new = "C:/Perl/eg/htpasswd -b logg " . "$user " . "$passwd";
system($cmd_add_new); #starts exe file
I have another perl script (which performs a POST method in an webb application). I added the above mentioned lines to the rest of that script in order to invoke htpasswd.exe "directly" from my script (skipping command prompt) but htpasswd.exe never executes. It only works when I run it from my command prompt.
Is there any help ?
Thanks //Swede
There is exe file called htpasswd.exe used by apache server and this file is located under \bin\ directory.
Using the following code I can open and communicate to htpasswd.exe from command prompt easily.
$cmd_add_new = "C:/Perl/eg/htpasswd -b logg " . "$user " . "$passwd";
system($cmd_add_new); #starts exe file
I have another perl script (which performs a POST method in an webb application). I added the above mentioned lines to the rest of that script in order to invoke htpasswd.exe "directly" from my script (skipping command prompt) but htpasswd.exe never executes. It only works when I run it from my command prompt.
Is there any help ?
Thanks //Swede