Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, October 24, 2026

Diff for scripts/shell/ssh-utils/put between version 1.5 and 1.6

version 1.5, 2003/11/22 19:18:02 version 1.6, 2003/11/22 19:29:45
Line 19 
Line 19 
 #  #
   
 #  #
 # $Platon: scripts/shell/ssh-utils/put,v 1.4 2003/11/22 19:17:20 nepto Exp $  # $Platon: scripts/shell/ssh-utils/put,v 1.5 2003/11/22 19:18:02 nepto Exp $
 #  #
   
 user=""  user='';
 machine=""  machine='';
   
 ssh_put()  ssh_put()
 {  {
         tar cf - "$@" | ssh -l $user $machine -e none tar xvf -;          tar cf - "$@" | ssh -l "$user" "$machine" -e none tar xvf -;
 }  }
   
 ssh_get()  ssh_get()
 {  {
         ssh -l $user $machine -e none tar cf - "$@" | tar xvf -          ssh -l "$user" "$machine" -e none tar cf - "$@" | tar xvf -;
 }  }
   
 if [ "$#" -lt 1 ]; then  if [ "$#" -lt 1 ]; then
Line 42  if [ "$#" -lt 1 ]; then
Line 42  if [ "$#" -lt 1 ]; then
         exit 1;          exit 1;
 fi  fi
   
 echo -en "login name: "  echo -en "login name: ";
 read user  read user;
 echo -en "hostname  : "  echo -en "hostname  : ";
 read machine  read machine;
   
 if [ -z "$user" ] || [ -z "$machine" ]; then  if [ -z "$user" ] || [ -z "$machine" ]; then
         echo "No login_name or hostname specified, exiting ...";          echo "No login_name or hostname specified, exiting ...";

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top