Re: how to reference bash variables inside perl script inside bash script?

2010-06-24 Thread Jason Holtzapple
On 06/23/2010 09:44 PM, Steven A. DuChene wrote: My problem is I want to be able to pick up $2 from the command line invocation of my bash script for the desired password and then pass that into the one line perl piece. But with all of the single quotes, double quotes, back ticks and etc. I

Re: how to reference bash variables inside perl script inside bash script?

2010-06-24 Thread Steven A. DuChene
I think that did the trick Eric. Thanks! -Original Message- From: Eric Shubert e...@shubes.net Sent: Jun 24, 2010 11:02 AM To: plug-discuss@lists.plug.phoenix.az.us Subject: Re: how to reference bash variables inside perl script inside bash script? Stuff inside of single quotes

Re: how to reference bash variables inside perl script inside bash script?

2010-06-24 Thread Brian Cluff
On 06/23/2010 09:44 PM, Steven A. DuChene wrote: The core part of the script I am having a problem with looks like: #!/bin/bash OPASS=$2 PASS=`perl -e 'print(userPassword: {CRYPT}.crypt($OPASS,frat-salt).\n);'` Try changing it to this: PASS=`perl -e 'print(userPassword:

how to reference bash variables inside perl script inside bash script?

2010-06-23 Thread Steven A. DuChene
I am attempting to write what I thought would be a simple wrapper script around ldapmodify that would allow me to easily reset a user's password. Inside my bash based wrapper script is a single line of perl that encrypts the password I input and returns it as a specially formatted string that then