in reply to How to give content of an xml file as a STDIN through PERL

See IPC::Run3

Also, I'd look for a jenkins option to pass filename instead of data

  • Comment on Re: How to give content of an xml file as a STDIN through PERL

Replies are listed 'Best First'.
Re^2: How to give content of an xml file as a STDIN through PERL
by 92sai (Novice) on Apr 06, 2015 at 10:22 UTC
    Thank you, I found the way to pass filename:
    my @args = ('java -jar jenkins-cli.jar -s http://localhost:8080/ creat +e-job job_name < "path to xml file" '); system(@args) == 0 or die "\n system @args failed: $?";