Skip to content

Instantly share code, notes, and snippets.

@soreana
Created November 14, 2018 06:21
Show Gist options
  • Save soreana/248c9105a4561aedac9afee730e31334 to your computer and use it in GitHub Desktop.
Save soreana/248c9105a4561aedac9afee730e31334 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Copyright 2018 Sina Kashipazha (sina_kashipazha@ut.ac.ir)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Manual :
# Make this this script executable by chmod +x mscp.sh and run it with ./mscp.sh /path/to/file to copy them in Computer
# network lab hosts.
# My recommendation is to put this file in /usr/local/bin or /usr/local/sbin by `sudo cp ~/path/to/mscp.sh /usr/local/bin/mscp`
# command to globally add it for all users.
# P.N: Current version has a lots of limits. They will removed in upcoming versoins :)
for i in {1..6}
do
scp -r $2 mininet@172.18.133.5$i:~
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment