I need some help!
I can run a sudo command from the command line without issue... This command line contains a dynamically substituted email address...
sudo /tmp/helpme johndoe@johndoe.com
However, if I try to call the same exact command from within a script, I lose the value of this email address... The new value defaults to /dev/null...
I've tried enclosing the 2nd and 3rd pieces of the command in single "'"s and double '"'s...
I've tried negating the blank space, by placing a backslash "\" in front of it...
None of these things seem to work...
Remember, the command works properly, and initializes the destination email address, if called from the command line, but not when called from within a script...
If anyone has any suggestions, I'd be happy to hear them.
JCF
I can run a sudo command from the command line without issue... This command line contains a dynamically substituted email address...
sudo /tmp/helpme johndoe@johndoe.com
However, if I try to call the same exact command from within a script, I lose the value of this email address... The new value defaults to /dev/null...
I've tried enclosing the 2nd and 3rd pieces of the command in single "'"s and double '"'s...
I've tried negating the blank space, by placing a backslash "\" in front of it...
None of these things seem to work...
Remember, the command works properly, and initializes the destination email address, if called from the command line, but not when called from within a script...
If anyone has any suggestions, I'd be happy to hear them.
JCF