Re: Source keychain credentials in Perl?

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



On Wed, Mar 05, 2008 at 11:00:13AM -0600, Sean Carolan wrote:
> >  system("source ~/.keychain/hostname-sh; cmd");
> >
> >  Is this what you're looking for?
> 
> Yes, this works.  Is there a way to only source the file once?  There
> are a bit over a dozen scp and ssh commands in the script.
> Unfortunately this is not my script, otherwise I'd have just done this
> all in bash.

Create a wrapper script:
  source ~/.keychain/hostname-sh
  run_annoying_perl_program.pl

-- 

rgds
Stephen
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux