Hi All,
I would like to run a batch file from perl and ger the reutun value from the batch file,
How can I do it?
I try to run system or exec but it didn’t work
Any idea?
$val=system("te st.bat");
$val=exec “test.bat”;
Thanks
Ronen
User Profile
Collapse
-
get return value from batch
-
Hi,
Itry to do as you told me but it still doesnt works
I'm running it at windows
my $x=qx/getuser.exe/;
print "user=$x";
Ronen... -
Get return value from exe
Hi All,
I hace a program the reurn a string, how can I run the program and get the reurn value at perl?
I try to do:
[CODE=perl]
open P, "getuser.ex e |" or die "error running command $!";
my @data = <P>;
close P;
my $exit_value=$? >> 8;
foreach my $line (@data) {
print "line=$line \n";
}
[/CODE]
Also I try to do... -
How to hide password
Hi All,
I would like to get the passwordf from the user,
I need to hide the password , replace it with '*' or not type user input,
I don't want to use a package such as 'ReadKey' or any other
How can I get the password and hide it?
Thanks,
Ronen
No activity results to display
Show More
Leave a comment: