Hi again Bill, [email protected] wrote: > For example, "ls -l" response "ls -", another "ls -l" response "ls -", > but if followed "ls", response the format of "ls -l". The same to "cd .." > response "cd .". It seems simple but not works.
Keep in mind that shells are created for humans. When humans send commands to a shell, they type the command and then they press enter. If you program wants to use the shell's human interface, you must make sure that your program behaves like a human. It sounds like you are not sending a line feed. (This exact problem came up on the list only a week or two ago. Did you look around in the archives? Can they be changed to more easily help you find answers?) //Peter _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
