1

Using C language to use system calls

view story
linux-howto

http://www.unix.com – I need to write a C program (not a C++ program) that allows some tasks to be preformed automatically from a menu-driven interface. Automate the following tasks: 1. Rename a file 2. Delete a file or a directory 3. Output Process Information 4. Execute “mode 644 ls –l” 5. Exit I need to know what steps should I follow to achieve the result. is it possible to ask the user to enter all the names and commands in 1 line or I should ask him one by one. thank you Code: #include <stdio.h> #include <fcntl.h> #include <sys/errno.h> int main (void) {   & (HowTos)