The most common task when operating the servers is to distribute a file to multiple servers.
So I wrote a piece of shell script to solve this problem:
|
|
call the script mscp <source file> <target dir>
, then the script will ask you the list of target servers. So you can type them one by one. If the remote user is different than you current user, you can also explicitly identify it by typeing user@server
Beside the previous scenario, there is a more common sceanrio, that you have got a server list stored in afile already. Then instead of type the servers line by line, you can pipe the file content to the script.
e.g:
|
|