According to WIll: While burning my CPU.
> 
> I am trying to write a shell script that will move a file, create a new
> file, and get a file with ftp.
> 
> Is thier any way that my shell script can send comands to the ftp program or
> is thier a way around using ftp.

You could include the following in your script.

-----------------------------------

#!/bin/sh
ftp -in <<-!

        open hostname
        user ftp -passwd
        cd /pub/linux/kernel/v2.0/
        binary
        hash
        get linux-2.0.36.tar.gz
!


------------------------------------

Of course you will need to change "hostname" to the host you wish to ftp
with and "-passwd" to your passwd for that particular system.
I think you will understand the rest.


> 
> Thanks
> Will
> 


-- 
Regards Richard.
[EMAIL PROTECTED]

Merry Xmas to all, and may all your troubles be small (ones).

Reply via email to