make c-program that accepts shell commands and execute them
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
i am a student living in suriname ans a complete newbie to linux and c.
i have to write a c-program that accepts shell commands with parameters and executes them. the program has to use the spaces in the command to execute the commands. who can put me on the right track?
thx i have read the manuel Will try to write something.
fgets let you read the command string and with system you can execute a shell command from within a c program. Have to read further about the forks..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.