User Profile
Collapse
-
yea but i want to write a function which does that job.i dont want to use built-in functions..if my shell uses system functions for all jobs,then whats the point of writing a shell? -
i am talking about the output of "ls -al "here..not all of the outputs we get from the shell...Leave a comment:
-
sorry about the duplicate post i tried to delete it but couldnt figure out how to do that.
i am trying to build a shell for my hw so if the user enters such a command "ls -al > myfile.txt" my shell should write the "ls -al" output into the myfile.txt instead writing to shell page..(just the same what bash shell does)Leave a comment:
-
about output redirection
hello!
I am currently writing my own script and need help on output redirection.as u know 'ls -al > myfile' would write the files in the current directory into the file called myfile.i know about opening a file and writing with fputc but have no idea about how to prevent the command from writing the output to terminal and get the output data to write to file..i hope i could tell my problem and someone could have an idea.
No activity results to display
Show More
Leave a comment: