#!/bin/ksh ############################################################################### # $Id: upload_on_remboserver,v 1.2 2005/10/11 11:53:11 petri Exp $ # Project: ESRF/Linux # Description: Stream the output to Rembo Toolkit's netclnt. # # Check for password below # # Arguments: $1 = target host (ex. localhost, myserver, 127.0.0.1) # $2 = password for netclnt (ex. rembo) # $3 = sourcefilepath # $4 = target directory relative to the global level # (or / for global) # $5 = destination file name # # Author(s): Petri Makijarvi # European Synchrotron Radiation Facility, # Grenoble, France # # Original: August 2005 # # License: GNU General Public License, version 2 ############################################################################### echo "open $1 $2" if [ $4 != "/" ] ; then echo "cd $4" fi echo "put $3 $5" echo "exit" # # end of upload_on_remboserver