(Jul-21-2020, 05:30 AM)Yoriz Wrote: File tutorials
https://python-forum.io/Thread-Basic-Files
https://docs.python.org/3/tutorial/input...ting-files
for loop tutorials
https://python-forum.io/Thread-for-loops
https://docs.python.org/3/tutorial/contr...statements
I already checked these documents, but it didn't help much on my specific requirement. I am new to Python. I was able to do it with shell scripting, but couldn't find a way around in python.
shell script:
Output:for i in `cat filename` #here around cat filename i inserted a special symbol that is on the tilde key sitting next to number 1 on the keyboard, it just doesn't get visible here.
do
ssh -l user@$i
done
## Filename contains the list of IP Addresses separated by newline