I'm trying to use a "python loop through list" and execute a command on each line from the list found and in between sleep to give it time to finish that command.
Here my script. I know it's the basic, but some one can help me to help me in put this script together. I'm using an old server with python 2.4 so I cannot use check_out or subprocess.
import os import sys import time f=open('nserver.txt') for line in f: os.system(/usr/local/sbin/script) + line time.sleep(5) # delays for 5 seconds f.close()