The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
@ Ftp
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
@ Ftp
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
03-17-2008
nua7
Registered User
Join Date: Mar 2008
Location: /bin/sh
Posts: 353
This should get you started..
#!/bin/bash
filename="/home/nua7/file1.tar.gz"
hostname="ftp.myhost.com"
username="username"
password="password"
ftp -un $hostname <<EOF
quote USER $username
quote PASS $password
binary
put $filename
quit
Thanks!
nua7
nua7
View Public Profile
Find all posts by nua7
Find nua7's past nominations received
Find nua7's present nominations given