#!/bin/sh
#
# ftp script to send/get file automatically
#
# define the variables
filename1="/path1/filename1"
filename2="/path1/filename2"
hostname="ftp.domain_name.com"
username="username"
password="password"
# main
ftp -n $hostname <<EOF
quote USER $username
quote PASS $password
binary
put $filename1
get $filename2
quit
EOF
2009年7月5日 星期日
freebsd ftp script command
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言