Finally I solved it.
It is combination of open and then only print. I tried it before, but it did not work, I do not know, where the mistake was.
open(AAA, "| orders params");
print AAA 'nextorder';
close(AAA);
Thanks a lot, PaulTEG, but I am totally beginner in Perl and Linux too and I do not see the answer in the link you attached. I am confused, there is a lot of text and my english is poor :-( Is there some simple way how to tell to perl, that my order is not new command on bash, but that I want...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.