Run a Linux command repeatedly

If you would like to issue a Linux command every X second, "watch" command is the solution.

Example:
Issuing netstat command every 2 seconds:

# watch -n2 "netstat -an|head -25"




Comments

Popular posts from this blog

Running Docker Wildfly/JBoss Application Server in Debug mode via Eclipse

Building RPM OpenSSH 7.1p1 on RHEL/CentOS 6.5