Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tail -f Locking Up

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
Hello,

When using the tail -f on one user's Sunblade 100 with Solaris 8, it will lock up after about 45 seconds.

I tried the following without success:
1. Explicitly running the core version of tail via: /usr/bin/tail -f /<mypath/<myfile>
2. I tried copying over tail from another system that is using same OS where tail -f is working ok.

What can you recommend? Michael
 
Follow. If the input-file is not a pipe, the program will not terminate after the line of the input-file has been copied, but will enter an endless loop,wherein it sleeps for a second and then attempts to read and copy further records from the input-file.
 
Thanks for the reply mrfixit.

I use tail -f as you describe, to view the contents of entries being written to a file in real-time.

On one workstation is locking up (not updating the real-time entries) after about 45 seconds.

Can you recommend any fixes?

Note: I have the user using a shell script that uses sleep for the moment but they must use tail -f in the long run.

thanks again,
Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top