Diff for scripts/shell/ssh-utils/put between version 1.2 and 1.3
| version 1.2, 2002/10/09 15:28:02 |
version 1.3, 2003/01/15 15:41:44 |
|
|
| #!/bin/sh |
#!/bin/sh |
| |
|
| # $Id$ |
# |
| |
# scripts/shell/ssh-utils/ - SSH related shell utils |
| |
# |
| |
# put/get - puts file to destination server or |
| |
# gets file from destination server |
| |
# ____________________________________________________________ |
| |
# |
| |
# Developed by Lubomir Host <rajo@platon.sk> |
| |
# Copyright (c) 2002-2003 Platon SDG, http://www.platon.sk/ |
| |
# All rights reserved. |
| |
# |
| |
# See README file for more information about this software. |
| |
# See COPYING file for license information. |
| |
# |
| |
# Download the latest version from |
| |
# http://www.platon.sk/projects/scripts/ |
| |
# |
| |
|
| |
# |
| |
# $Platon: $ |
| |
# |
| |
|
| user="" |
user="" |
| machine="" |
machine="" |
| Line 32 if [ -z "$user" ] || [ -z "$machine" ]; |
|
| Line 52 if [ -z "$user" ] || [ -z "$machine" ]; |
|
| exit 1; |
exit 1; |
| fi |
fi |
| |
|
| # if called with name 'put' --> try 'put()' |
# if called with name 'put' --> try ssh_put() |
| # 'get' --> try 'get()' |
# 'get' --> try ssh_get() |
| case $0 in |
case $0 in |
| *put) ssh_put $*; |
*put) ssh_put $*; |
| ;; |
;; |
|
|
| ;; |
;; |
| esac |
esac |
| |
|
| |
|
| # vim: ft=sh |
# vim: ft=sh |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|