[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sending password in the command line



On Thu, Dec 27, 2001 at 02:11:42PM -0200, Pedro Zorzenon Neto wrote:
> 
>   $tmp=`umask 177; tempfile`;
>   fopen (PASS,">$tmp");
>   print PASS $password;
>   fclose PASS;
>   `cat $tmp | myprogram enable $user $ip; rm -f $tmp`;

sorry...

   open (PASS,"| myprogram enable $user $ip");
   print PASS $password;
   close PASS;

would be better...



Reply to: