File: cycle_forever.sh

package info (click to toggle)
prrte 3.0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 9,128 kB
  • sloc: ansic: 80,431; sh: 4,289; perl: 3,195; makefile: 1,829; lex: 352; python: 239
file content (12 lines) | stat: -rwxr-xr-x 141 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
i=0
for (( ; ; ))
do
	prun -n 1 hostname > /dev/null
	((i++))
	if [ $i -eq 1000 ]
	then
		echo Executed $i times
		i=0;
	fi
done