morphoney wrote: > I am trying to simulate a shell terminal that will take in command > lines from a user and execute them, then prompt again.
Just read in input from the user as you normally do. Then run each command using system(). That's a good starting point. If this is for a class, you'll probably have other assignments that require more advanced things like parsing the command line and initiating pipes and stuff. And, Brett, don't recommend looking at GNU stuff. That's evil code. It scares students and gives them nightmares. :P -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* VerifyMyPC 2.2 Change tracking and management tool. Reduce tech. support times from 2 hours to 5 minutes. Free for personal use, $10 otherwise. http://www.CubicleSoft.com/VerifyMyPC/
