Redian新闻
>
how to use batch file to ftp files in UNIX?
avatar
how to use batch file to ftp files in UNIX?# Unix - 噫吁兮,危乎高哉
j*r
1
hi,
I want to make a batch file to download some files automatically
like this,
ftp
open my.download.com
user aaa [email protected]
ls
get aaa.zip
close
by
Can any daxia told me how to do it?
Thanks.
avatar
n*o
2
man wget and crontab

【在 j*******r 的大作中提到】
: hi,
: I want to make a batch file to download some files automatically
: like this,
: ftp
: open my.download.com
: user aaa [email protected]
: ls
: get aaa.zip
: close
: by

avatar
s*i
3
a sample code:
#! /bin/sh
# $Id: ftpget,v 1.2 91/05/07 21:15:43 moraes Exp $
# Script to perform batch anonymous ftp. Essentially converts a list of
# of command line arguments into input to ftp.
# Simple, and quick - written as a companion to ftplist
# -h specifies the remote host (default prep.ai.mit.edu)
# -d specifies the remote directory to cd to - you can provide a sequence
# of -d options - they will be cd'ed to in turn. If the paths are relative,
# make sure you get the sequence right. B

【在 j*******r 的大作中提到】
: hi,
: I want to make a batch file to download some files automatically
: like this,
: ftp
: open my.download.com
: user aaa [email protected]
: ls
: get aaa.zip
: close
: by

avatar
j*r
4
There is no wget in my Unix and I have no permission to use crontab.

【在 n*o 的大作中提到】
: man wget and crontab
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。