User Profile

Collapse

Profile Sidebar

Collapse
ronenbenchamo
ronenbenchamo
Last Activity: Dec 3 '07, 12:00 PM
Joined: May 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ronenbenchamo
    started a topic get return value from batch
    in Perl

    get return value from batch

    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
    See more | Go to post

  • ronenbenchamo
    replied to Get return value from exe
    in Perl
    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...
    See more | Go to post

    Leave a comment:


  • ronenbenchamo
    started a topic Get return value from exe
    in Perl

    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...
    See more | Go to post
    Last edited by miller; May 15 '07, 05:42 PM. Reason: Code Tag and ReFormatting

  • ronenbenchamo
    started a topic How to hide password
    in Perl

    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
    See more | Go to post
No activity results to display
Show More
Working...