My Tech Notes

Thursday, February 9, 2017

Repeat a unix command

watch -n1  command
Example:
watch -n5 "ls -lrt test"
Above command will execute every 5 seconds
Posted by srikanth at 8:14 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

srikanth
View my complete profile

Blog Archive

  • ►  2022 (5)
    • ►  June (1)
    • ►  May (1)
    • ►  March (3)
  • ►  2021 (11)
    • ►  July (2)
    • ►  June (1)
    • ►  May (7)
    • ►  April (1)
  • ►  2020 (9)
    • ►  August (4)
    • ►  July (1)
    • ►  May (1)
    • ►  March (2)
    • ►  February (1)
  • ►  2019 (1)
    • ►  April (1)
  • ►  2018 (5)
    • ►  January (5)
  • ▼  2017 (16)
    • ►  December (1)
    • ►  November (4)
    • ►  July (2)
    • ►  April (2)
    • ▼  February (1)
      • Repeat a unix command
    • ►  January (6)
  • ►  2016 (8)
    • ►  December (2)
    • ►  November (1)
    • ►  October (2)
    • ►  August (1)
    • ►  July (1)
    • ►  February (1)
  • ►  2015 (35)
    • ►  December (1)
    • ►  August (4)
    • ►  July (8)
    • ►  June (22)
Simple theme. Powered by Blogger.