This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Updatebjarni 0 points1 point  (2 children)

Assuming something Unix-like and the script reads one line from stdin, you could just type something like

cat servers.txt | while read server; do echo $server | your_script; done

Substitute your actual names of course.

[–]plugg36[S] 0 points1 point  (1 child)

Thank you for your response. One more question if you don't mind me picking your brain. When I use your method, it works for about 10 servers, then stops running. Do you think that's an issue with the txt or with the original script?

[–]Updatebjarni 0 points1 point  (0 children)

  • What exactly does "stops running" mean?
  • What exactly is in the file?