You can open a pipe to your other process like a file handle:
This means that the pass phrase will also have to be written through perl, something like this should work: print $handle scalar <STDIN>; # print to handle one line from the console# Open the handle open my $handle, '|-', 'java -jar jenkins-cli.jar -s http://localhost: +8080/ create-view abcd' or die "Couldn't open pipe: $!"; # Use it like a file print $handle "Hello"; # Will print "Hello" to the standard input of t +he java process
You should have a look at open and perlipc for more information on handles and inter-process communications.
In reply to Re: How to give content of an xml file as a STDIN through PERL
by Eily
in thread How to give content of an xml file as a STDIN through PERL
by 92sai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |