Re: problem with syscall macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Thu, Jan 13, 2005 at 01:07:29PM -0500, Jim Bauer told us:
> > exactly i want to scan through  the  log file and extract my useful
> > messages to myfile and this program will work as a deamon
> 
> Then you certainly shouldn't need to use syscall3 or write any kernel 
> code.  Except for the daemon aspect, grep might be all you really need.

and for the daemon aspect, you could look at what "tail -f" does to
output appended lines as they are written to the file. See man tail
for what it does and the coreutils-sources at
ftp://alpha.gnu.org/gnu/coreutils/coreutils-5.3.0.tar.gz for how it
does it :-)


HTH

Sven

-- 
Linux zion 2.6.10-bk7 #0 Fri Jan 7 19:08:39 CET 2005 i686 athlon i386 GNU/Linux
 19:56:28 up 6 days, 33 min,  2 users,  load average: 0.05, 0.05, 0.01

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux