Search Results

Search: Posts Made By: burton_1080
35,508
Posted By burton_1080
Not sure
I think you might be right. Below are the results from the actual script. The thing that screws me up is i CAN copy the echoed command into the command prompt and it works. I am at a loss. The...
35,508
Posted By burton_1080
It echos fine but does not run fine.
You have to run it in a script.

#---------
#!/bin/bash
variable="-b \"dc=example,dc=com\""
ldapsearch $variable
echo This is echoed: $variable
#----------

when you run sh -x to it this is...
35,508
Posted By burton_1080
Double Quotes within a variable
This is a totally dumb newbie question, but I have not been able to find t he answer in the BASH book or online.

I am trying pass a double quoted variable to the command line.

variable = "-b...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 01:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy