Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Perl Related question

 
Geraldine Premkumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to this forum so if this is not the right place to post this please redirect it. I have a perl script obtains passwords from STDIN and passes it to a java program(Utilities) as command line arguments, as shown

my $Utilities = "C:/jdk/bin/java -classpath $ENV{CLASSPATH} Utilities $oldpass $newpass";
system ($Utilities);

For security reasons I would like to pass the passwords as standard input to the java program instead of command line argruments.
I am really very new to perl and would really appreciate any input.

Thanks
Geraldine
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not a Perl-guy but decided to do some googling and found this:
Pipe-Opens
 
Geraldine Premkumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot. Helped me figure it out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic