#!/bin/sh
# set -x
#
#       @(#)sacquire	1.1 09/07/93         F. Acher Hassine
#       SACQUIRE SCRIPT FILE
#
#  Copyright (C) 1992 by CERN/CN/SW-DC
#  All rights reserved
#
#
# purpose:
#       copy a file from a remote site using FTP or RCP
#       Returns 0 in case of success, 1 otherwise
#       If the file already exists, it directly returns
#       with a 0 status.
#
# syntax:
#       sacquire local_path -t text [-v] [-u user] [-f mode]
#
# Restriction:
#       On a machine where an 'acquire' is already available
#       with its name specified by variable CRAYACQUIRE, that
#       command is the one which is run.
#
# Example:
#       sacquire myfile -t cernvm:profile.exec -u acher -f ascii
#       that will get    the file profile.exec
#                        in account acher
#                        on machine cernvm
#                        in mode ascii for transfer
#                        and put it in the local file myfile
#
#
#      sacquire myfile -t'cernvm:profile.exec'  -u'acher' -f'ascii'
#       gives the save result.
#
# this script file is to be executed in an environment
# containing the file specified in variable CFFILE.
#
# Its format:
#       nodename        protocol
#
# example:
#       shift1          rcp
#
#
###############################################################
PROGNAME="sacquire"
export PROGNAME
sfetch $*
#EOF
