-
- Write a shell script that accepts valid file names as command line arguments and for each of the arguments, prints the type of the file. (Regular file, Directory file, Character device file, Block device file, Symbolic link file)
-
- a) Write a shell script simply counts the number of lines in an input file. b) Write a shell script to extract a substring from a given string
-
- Write a shell script to recursively traverse a folder to retrieve all files having permissions as accepted from the user.
-
- Write a C program to display the name of user-defined function after returning from the user-defined function to main function using ‘setjmp’ and ‘longjmp’ functions
-
- Write a C program to do the following:
i. Using fork () create a child process.ii. The child process prints its own process-id and process id of its parent. The child
process should read commands from the standard input and execute them (a minimal implementation of a shell – like program) and then exits.
iii. The parent process waits for its child to finish (by executing the wait ()) and prints its
own process-id and the id of its child process and then exists.
-
- Write a C programto generate the signals SIGINT, SIGFPE, SIGSEGV, and SIGCHLD &
SIGILL and provide signal handlers for the signals generated.
-
- Write a C program to create a daemon which prompts for authentication (username andpassword) whenever user tries to display the contents of a file owned by the user.
- 8.a) Write a C program to demonstrate two way Inter Process Communications between two processes using pipes. Use SELECT system call to monitor the read-ends of the pipes.
- 8.b) Write a C program to demonstrate two way Inter Process Communications between two processes using FIFO.
-
- Implement message transfer using Message Queue form of IPC. The client process request for a message that is sent by the Server process. Server returns a suitable message if the message is not available.