View Single Post
  #3   (View Single Post)  
Old 10th March 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

You can use a shell script, something like:

Code:
#!/bin/sh

for i in $(jot 10); do
  echo "Running command for the ${i}nth time"
done
This will run 10 times.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote