Pozdrav,
Kako koristeci exec da napravim program u perl-u koji ce uraditi sledece:
create a program shell.pl that will repeatedly read a line of user input (containing a Unix/Linux command to be executed) until the user enters CTRL-D (end of file). For each line entered,
your program should fork a process that will execute the provided command using exec.
Your parent process should use wait to await the completion of the child process. Your program should handle invalid commands by printing a suitable error message.
Ima li neko ideju?
Jednostavno da program radi u terminalu bi bilo najlakse.
Kako koristeci exec da napravim program u perl-u koji ce uraditi sledece:
create a program shell.pl that will repeatedly read a line of user input (containing a Unix/Linux command to be executed) until the user enters CTRL-D (end of file). For each line entered,
your program should fork a process that will execute the provided command using exec.
Your parent process should use wait to await the completion of the child process. Your program should handle invalid commands by printing a suitable error message.
Ima li neko ideju?
Jednostavno da program radi u terminalu bi bilo najlakse.
Potpis
If u can do it i can do it as well