Re: Redirection issue
- From: "Ed Prochak" <edprochak@xxxxxxxxx>
- Date: 31 Aug 2006 12:25:08 -0700
souissipro wrote:
Ed Prochak wrote:[snip]
[snip]
My question is did you follow ANY of the suggestions I gave you? Your
error is very simple. I did look at your code and found the problem
right away. I really am trying to help you learn. This problem is
independent of the programming language. So please, review your own
code. before you scroll down to what I see as the root problem.
You never called the new function!
BTW, long term your approach is going about it the hard way, but you'll
learn more this way.
Ed
Hi Ed,
Thank you anyway for your comments. I appreciate them very much.
I decommented the code in the new function redir_cmd, changed the types
of fd1 and fd2 to char and the redirection works fine now. However, the
simple command and the simple input file are now not working.
Please any precise idea because I have to finish this shell for
tomorrow.
Thanks,
souissipro
based on your reply, I take it that
you did NOT follow any of my suggestions. (I could be wrong. 8^)
your source listing from the first post is not the version of code you
are currrently discussing since my comment was about the main() routine
and nothing was commented out in that version. I haven't seen you post
another version.
Finally, NEVER expect responses in a newsgroup in less than 24 hours.
Some people will not even have seen your request before a full day has
past. Just remember, newsgroups are not like AOL Chat rooms.
Good luck, you will need it.
Ed
.
- References:
- Re: Redirection issue
- From: Ed Prochak
- Re: Redirection issue
- From: souissipro
- Re: Redirection issue
- From: Ed Prochak
- Re: Redirection issue
- From: souissipro
- Re: Redirection issue
- Prev by Date: Re: Initializing constants
- Next by Date: Re: Convert 00010000 to 11110000......how?
- Previous by thread: Re: Redirection issue
- Next by thread: Re: Redirection issue
- Index(es):