Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Štvrtok, 15. október 2026

Rozdiely pre scripts/shell/ssh-utils/put medzi verziami 1.5 a 1.6

verzia 1.5, 2003/11/22 19:18:02 verzia 1.6, 2003/11/22 19:29:45
Riadok 19 
Riadok 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
Riadok 42  if [ "$#" -lt 1 ]; then
Riadok 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:
Odstranené z verzie1.5  
zmenené riadky
  Pridané vo verzii1.6

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok