Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Error: sh: cannot duplicate fd 31 to fd 0: Bad file descriptor
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="bgold12, post: 3704806"] I get this error apparently from the following line, where I call ls, then grep the results, then write the output to a temporarily file all using the system command: sprintf(buf, "ls -p \"%s\" |grep \"[^/]$\" >> \"%s\"", dir, tempfileName ); system(buf); I have no idea what's causing it, or what the error even means. Can anyone help? I'm running Windows XP. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Error: sh: cannot duplicate fd 31 to fd 0: Bad file descriptor
Top