This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Perl and the fly likes Perl Related question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » Perl
Bookmark "Perl Related question" Watch "Perl Related question" New topic
Author

Perl Related question

Geraldine Premkumar
Greenhorn

Joined: May 01, 2006
Posts: 5
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
I'm not a Perl-guy but decided to do some googling and found this:
Pipe-Opens


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Geraldine Premkumar
Greenhorn

Joined: May 01, 2006
Posts: 5
Thanks a lot. Helped me figure it out.
 
Consider Paul's rocket mass heater.
 
subject: Perl Related question
 
Similar Threads
Running perl from java
Manage user account in unix
perl.exe thru java
How can you pass the arguments from the java program to the perl program?
Input redirection in Java