execvp("tail -1f /var/log/apache/www.cs.umu.se/access_log", args) ;

This is a discussion on execvp("tail -1f /var/log/apache/www.cs.umu.se/access_log", args) ; within the Linux Programming forums, part of the Platform Specific Boards category; 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 ...

execvp("tail -1f /var/log/apache/www.cs.umu.se/access_log", args) ;

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...

The only reason it does "ls" is because your tail execl call fails miserably with an error. If it succeeded, you would not see the "ls" at all. execl level functions are one-way trips, if they succeed in running a new program they do not return.