hi,
       I'm trying to write a short perl script that takes stdin as a command
line option and executes it with the command I'm using in the script.  I
don't want the stdin to be visible when entering it in. Any assistance would
be appreciated.

here is what I have so far...
--------------------------------------------
#!/usr/bin/perl -w

print "what is the password to continue execution?\n";
chomp ($execpasswd=<STDIN>); 
system('clear'); #leaves stdin in xterm scroll buffer

print "trying to execute.....\n";
system('echo "hello my password is $execpasswd"'); 
print "the password is $execpasswd"
exit
------------------------------------------

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to