Entries in the ‘Uncategorized’ Category:

for loop for scping files to a list of servers

This little command line statement will copy a folder of files to the list (space separated) of hosts in your client list.
for i in `cat client_list.txt`;do `scp -r directory root@$i:~/`;done
You also need to load keychain on your desktop and have your ssh key loaded on the server to avoid typing your password for each host.
You [...]

Tags:

Leave a Comment

Mac: Switch from ulgy 3D dock to cool 2D one

Just use the command:
defaults write com.apple.dock no-glass -boolean YES; killall Dock

Tags: ,

Leave a Comment