Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Roy Olsen" <roy.olsen@smedvig.no>
Subject: Re: ftp scripts
Date: 1998/09/22	[thread overview]
Message-ID: <906451032.670215@ole.realtime.no> (raw)
In-Reply-To: 01bde58d$c8473060$b51cdec2@dalloyd.demon.co.uk

Here's one way to do it;

#!/bin/csh

set REMDEST="host"
set USER="user"
set PWD="password"
set REMFILE1="remote.file1"
set REMFILE2="remote.file2"
set LOCFILE1="local.file1"
set LOCFILE2="local.file2"

# Get files
ftp -n ${REMDEST} <<EOF
user ${USER} ${PWD}
get ${REMFILE1} ${LOCFILE1}
put ${LOCFILE2} ${REMFILE2}
quit
EOF


---
Roy Olsen
UNIX Team
Sema Group Norge







  reply	other threads:[~1998-09-22  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-21  4:00 ftp scripts Al
1998-09-22  4:00 ` Roy Olsen [this message]
1998-09-22  4:00 ` Rolf Hauck
1998-09-29  4:00 ` Rob Urban
1998-10-05  4:00   ` another way Avarham Shapiro
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox