From: Larry Bouthillier <[EMAIL PROTECTED]>
Subject: Re: Automated Archving

You can script ftp in Unix by writing a script that looks like this.  It 
takes a
single argument, the root name of the file you're ftp-ing.  Obviously, change
the paths as you like, and you can have it put multiple files in one operation
by using 'mput' with wildcard filenames in place of 'put'.  You can also issue
'mkdir' commands within the session to create directories if needed.

----------------------------
#!/usr/bin/sh

echo "In doftp.sh\n"
/usr/ucb/ftp -in [servername] <<ENDFTP
user [username] [password]
cd /realvideo
lcd /realvideo
bin
put $1.rm
quit
ENDFTP
--------------------------

If you're on NT, you can do it by using a command like:

ftp -i -s:myfile.ftp [servername]

where myfile.ftp contains the sequential commands you'd issue from an ftp
prompt, each on a separate line.

Larry

RealForum wrote:

 > From: "Allen Kiely" <[EMAIL PROTECTED]>
 > Subject: Automated Archving
 >
 > Morning all from Dublin
 >
 > I have need to implement a automated archiving system that will grab a ten =
 > minute news slot every day
 > and ftp to another server.=20
 >
 > I'm running a G2 server
 >
 > Any advice is much appreciated
 >
 > Allen


*******************************************************
The RealForum is an email discussion group focused on using RealNetworks
products. The RealForum is a place to post messages about the best methods
for creating content using RealNetworks technologies and the planning and
implementation of streaming-media web sites.

If you ever want to remove yourself from this mailing list,
you can send mail to <[EMAIL PROTECTED]> with the following
command in the body of your email message:

    unsubscribe realforum

or from another account, besides the address you subscribed with:

    unsubscribe realforum <[EMAIL PROTECTED]>

Reply via email to