Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-03-2003, 11:47 AM   #1
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
Exclamation 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:

ldapsearch -x -h -w xxxxxx  -b 'cn=Users,DC=mydomain,DC=com' -D "cn=Administrator,cn=Users,dc=mydomain,dc=com"
this command works great and outputs over a thousand records to my screen which doesn't do me a whole lot of good. Now, this command produces this error:

ldapsearch -x -h -w xxxxxx  -b 'cn=Users,DC=mydomain,DC=com' -D "cn=Administrator,cn=Users,dc=mydomain,dc=com" > output.ldif
ldap_result: Can't contact LDAP server (81)
Any ideas? Is there a different way I could redirect this output to a file. I have also tried >> with no avail.

Last edited by mrtwice; 06-03-2003 at 12:18 PM.
Old 06-03-2003, 05:47 PM   #2
Registered: May 2003
Location: Nashville TN, USA
Distribution: Debian (I'm unstable)
Posts: 117

Rep: Reputation: 15
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
help required to solve error = line 3: H: command not found Imtiaz Deen Red Hat 1 07-29-2005 02:01 PM
mplayer command-line error bnj Linux - Newbie 5 07-21-2005 12:07 PM
error booting redhat with grub command line shams Linux - Software 0 03-02-2004 08:23 PM
LILO error on run at command line HappyFunBall Linux - General 4 08-31-2003 11:27 PM
Printing error from command line nutshell Linux - General 0 03-02-2002 05:39 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration