command line '>' (redirect) error
I am trying to redirect the output of a command to a file and am getting an error. Anyone have an idea on how to fix it:
Code:
ldapsearch -x -h xxx.xxx.xxx.xxx -w xxxxxx -b 'cn=Users,DC=mydomain,DC=com' -D "cn=Administrator,cn=Users,dc=mydomain,dc=com" Code:
ldapsearch -x -h xxx.xxx.xxx.xxx -w xxxxxx -b 'cn=Users,DC=mydomain,DC=com' -D "cn=Administrator,cn=Users,dc=mydomain,dc=com" > output.ldif |
try passing it to something like less with | and see if the result is any different (if that works, then may tee would work too). is the command being wrapped onto another line, the shell may be choking because of that. if so, then try putting the command line in a shell script instead
|
All times are GMT -5. The time now is 02:35 AM. |