[Tutor] Linux tail -f multiple log files

David david at abbottdavid.com
Wed Jan 7 01:40:50 CET 2009


> 
> Now if I do this to all the functions;
> def slog():
>     sudo = "sudo"
>     tail = "tail"
>     targ = "-f" # output appended data as the file grows
>     sfile = "/var/log/messages"
>     print colored("<syslog>", "blue")
>     call([sudo, tail, sfile])
> 
> Only the first function will print to the screen.
> 
> thanks in advance,
> -david
> 
oops should be;
def slog():
     sudo = "sudo"
     tail = "tail"
     targ = "-f" # output appended data as the file grows
     sfile = "/var/log/messages"
     print colored("<syslog>", "blue")
     call([sudo, tail, targ, sfile])

-- 
Powered by Gentoo GNU/LINUX
http://www.linuxcrazy.com
pgp.mit.edu



More information about the Tutor mailing list