Hi

This program I use to get the last line from the log file "cipe.log". and then 
write the line onto a text file "a.txt"

system("tail -1 cipe.log > a.txt");
open INPUT,"a.txt";
my $line=<INPUT>;

then I open the text file and read the value from the file handle.

This invloves cumbersome process. I need to avoid writing to a file the o/p of 
the system command. Is there a way to assign to some variable...

Thanks
Anish

Reply via email to