node.js - node-webkit tail a file output in application console -


pardon me if totally wrong in concepts novice of - node js, node-webkit, javascript. trying learn of them :)

i developing simple desktop app using node-webkit want read system log , write in application console. using tailfd node module , there no error in console. here html

<!doctype html> <html>     <head>         <title>tailing system log</title>     </head>     <body>         <script>             var tail = require('tailfd').tail,             watcher = tail('/var/log/system.log',function(line,tailinfo) {                 //default line listener. optional.                 console.log('line of data> ',line);             });         </script>         <h1>tailing sys log!</h1>     </body> </html> 

the tail output not showing in app console. can point me if missing basic stuff? appreciated.


Comments

Popular posts from this blog

Change the color of an oval at click in Java AWT -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -