Hi,
I need execute two commands in command line from running script, but the first is on command line and the second is response to request from server. How can I do it?
My not working example:
open(ORDER, "<some order> -param1 -param2 -user usrname... |")
or die;
#it works, it calls server...
# now the server want the password on command line - how can I give it to him? This do not work:
open(ORDER, "$mypassword");
or die;
close(ORDER);
#This causes nothing -it is waiting until I give him passw. from keyboard and then is used "$mypassword" on new free clear command line(thats wrong), but I need use automatically the variable to answer to server request.
Thanks a lot for help.
I need execute two commands in command line from running script, but the first is on command line and the second is response to request from server. How can I do it?
My not working example:
open(ORDER, "<some order> -param1 -param2 -user usrname... |")
or die;
#it works, it calls server...
# now the server want the password on command line - how can I give it to him? This do not work:
open(ORDER, "$mypassword");
or die;
close(ORDER);
#This causes nothing -it is waiting until I give him passw. from keyboard and then is used "$mypassword" on new free clear command line(thats wrong), but I need use automatically the variable to answer to server request.
Thanks a lot for help.