a little shutdown script for (old) my linux cybercafe

Posted: July 25, 2010 in Linux

Found this on my old harddrive, it’s a shutdown script for all linux terminals so the operator didn’t have to turn it off one by one

#!/bin/sh
for addr in 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
do
ssh 192.168.10.$addr halt
done

Just open a new file, paste it in, save and don’t forget to chmod +x it

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s