The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
AIX 5.3 monitor refresh rate dj.brown AIX 1 12-01-2005 07:03 AM
Refresh window? JimmyFo AIX 0 08-24-2005 11:33 PM
How to increase refresh rate armen Linux 6 06-11-2005 07:57 AM
CGI: refresh page and timeout man Shell Programming and Scripting 0 03-01-2005 02:53 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-11-2006
skidude skidude is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 1
Refresh ls list on screen (auto-refresh)?

I am looking for a way to issue a command or string of commands to repeatedly display new files that are written to the directory. I usually use ls -ltr to see the newest files at the bottom of the screen. I would like to automate this command to refresh what is displayed every second or so. Can this be done at the command line or in a .ksh script? I seem to have found a way to do this many years ago but I am returning to UNIX (HPUX) now and can't remember how this was done.

Thanks in advance!
  #2 (permalink)  
Old 04-11-2006
d_swapneel14 d_swapneel14 is offline
Registered User
  
 

Join Date: Mar 2006
Location: Mumbai,India
Posts: 57
hi

write your ls commad in crontab and make it run for each minute..
  #3 (permalink)  
Old 04-11-2006
mahendramahendr mahendramahendr is offline Forum Advisor  
Registered User
  
 

Join Date: Dec 2005
Location: London
Posts: 222
while [ 1 ]
do
clear
ls -lrt
sleep 60
done

run the above commands in ksh command line prompt to autorefresh in screen
  #4 (permalink)  
Old 11-13-2007
riceriot riceriot is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 1
Easier to use 'watch'

$ watch ls -ltr
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0