hi
i was trying to read output of tail -f by follow method
i first filtered out put of logs and redirted to a file like
tail -f /var/log/messages | grep firewall > firewall.log &
then i tried to read firewall.log by
1)fscanf()
it read the file but i used %s so i was not able to get complete line of log
can some one tell me what shall i give in place of %s if get complete line scanned
2)read()
i opened file in Readonly mode.it opened successfully
but when i try to read it i get "Bad Address" (i m using perror())
pls help
---
Manish Kumar Arya
________________________________________________________
Outgrown your current e-mail service?
Get a 25MB Inbox, POP3 Access, No Ads and No Taglines with LYCOS MAIL PLUS.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus
================================================
To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header
To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header
Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org
=================================================