Hello,
This code only gives the "ls" output.
Although running the command "tail -1f /var/log/apache/www.cs.umu.se/access_log"
directly in UNIX it is working, ie it's printing out
the logglines from that webserver...
Please Help!!
Code:#include <stdio.h> #include <stropts.h> #include <poll.h> #include <unistd.h> int main(void) { char *args[] = {"tail -1f /var/log/apache/www.cs.umu.se/access_log", NULL}; execvp("tail -1f /var/log/apache/www.cs.umu.se/access_log", args) ; execvp("ls", args) ; }
KrY