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

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: $?";