can anyone knows how to reboot computer in just one line code of bash (by looping itself). The details will be get from the text file which are the IP Address of each computer. When the script gets the IP address of the computer it will go in and reboot it. HOw can I do it.
Take the 2-minute tour
×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
Option 1# Using for loop
Option 2# Using xargs
Note: You need SSH Password less login or it will ask password for each host which is listed in inputfile |
||||
|