Hi,
Why my variable "tt" does not change eventhough I continuously add couple of lines in to test.data file????
tail -f test.data|nawk '{"ls -ltr test.data"|getline tt;print tt;}'
-rw-r--r-- 1 oracle dba 2083 Jul 22 15:10 test.data
-rw-r--r-- 1 oracle dba 2083 Jul 22 15:10 test.data
-rw-r--r-- 1 oracle dba 2083 Jul 22 15:10 test.data
Rgds,
Suhaimi
Why my variable "tt" does not change eventhough I continuously add couple of lines in to test.data file????
tail -f test.data|nawk '{"ls -ltr test.data"|getline tt;print tt;}'
-rw-r--r-- 1 oracle dba 2083 Jul 22 15:10 test.data
-rw-r--r-- 1 oracle dba 2083 Jul 22 15:10 test.data
-rw-r--r-- 1 oracle dba 2083 Jul 22 15:10 test.data
Rgds,
Suhaimi