由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Help! shell programming
相关主题
Shell Script Question如果一直都不logout的话
如何在Solaris 下周期性地自动执行一个 shell script帮帮忙,用C作一个SHELL
菜鸟2问题-about shell programmingA question about cron job
菜鸟问题-about shell programmingSolaris 10网络安装问题
新手求助shell scriptshell programming问题:如何同时run多个作业
tc shell script??[急!] Shell Programming求救
help about chmod/devices/pci@1f,0/
[转载] 那里有linux下的I/O Benchmark program?A Question on Shell (ksh) programming
相关话题的讨论汇总
话题: shell话题: ftp话题: do话题: script
进入Unix版参与讨论
1 (共1页)
c********e
发帖数: 417
1
My boss asked me to write a shell program to do the following things:
1. find the changed files during a day. I guess it could be accomplished
by 'find ' utility.
2. copy those changed files to another machine across a network. Is 'ftp'
usable? If so, how to use ftp? How to disable the prompting and provide
it with userID and password?
Or there is some other way to do it instead of 'ftp'?
3. the script has to run every night automatically. I heard 'cron' can do
that, but I have ne
j*****g
发帖数: 980
2
man cron
man crontab
search google for cron
....

【在 c********e 的大作中提到】
: My boss asked me to write a shell program to do the following things:
: 1. find the changed files during a day. I guess it could be accomplished
: by 'find ' utility.
: 2. copy those changed files to another machine across a network. Is 'ftp'
: usable? If so, how to use ftp? How to disable the prompting and provide
: it with userID and password?
: Or there is some other way to do it instead of 'ftp'?
: 3. the script has to run every night automatically. I heard 'cron' can do
: that, but I have ne

c********e
发帖数: 417
3
OK, then. I figured out how to use cron. But I still have no idea how
to transfer a file to another machine in shell script.
Anyone knows? Thanks!

【在 j*****g 的大作中提到】
: man cron
: man crontab
: search google for cron
: ....

c**t
发帖数: 2744
4

You've already known these stuff. Read man pages instead of
asking help.

【在 c********e 的大作中提到】
: My boss asked me to write a shell program to do the following things:
: 1. find the changed files during a day. I guess it could be accomplished
: by 'find ' utility.
: 2. copy those changed files to another machine across a network. Is 'ftp'
: usable? If so, how to use ftp? How to disable the prompting and provide
: it with userID and password?
: Or there is some other way to do it instead of 'ftp'?
: 3. the script has to run every night automatically. I heard 'cron' can do
: that, but I have ne

c*****t
发帖数: 1879
5
1. like others have suggested, read man pages of them first.
the commands you discribed can do the job. Just a note
that you can use shell script to generate a ftp script
in .netrc (which you may have to create a special account for it)..
Or you can use expect script. Or you can tar the files
first if they are not too big.
2. you may also want to try out uucp, which I have no idea
of using.
3. You can do NFS mount and.

【在 c********e 的大作中提到】
: My boss asked me to write a shell program to do the following things:
: 1. find the changed files during a day. I guess it could be accomplished
: by 'find ' utility.
: 2. copy those changed files to another machine across a network. Is 'ftp'
: usable? If so, how to use ftp? How to disable the prompting and provide
: it with userID and password?
: Or there is some other way to do it instead of 'ftp'?
: 3. the script has to run every night automatically. I heard 'cron' can do
: that, but I have ne

j*****g
发帖数: 980
6
man ncftpput
man ncftpget

【在 c********e 的大作中提到】
: OK, then. I figured out how to use cron. But I still have no idea how
: to transfer a file to another machine in shell script.
: Anyone knows? Thanks!

T********r
发帖数: 6210
7
$ man rcp
it's simple.

【在 c*****t 的大作中提到】
: 1. like others have suggested, read man pages of them first.
: the commands you discribed can do the job. Just a note
: that you can use shell script to generate a ftp script
: in .netrc (which you may have to create a special account for it)..
: Or you can use expect script. Or you can tar the files
: first if they are not too big.
: 2. you may also want to try out uucp, which I have no idea
: of using.
: 3. You can do NFS mount and.

s***t
发帖数: 195
8
or scp. it's secure.

【在 T********r 的大作中提到】
: $ man rcp
: it's simple.

1 (共1页)
进入Unix版参与讨论
相关主题
A Question on Shell (ksh) programming新手求助shell script
[转载] shell programming and awk questionstc shell script??
Is this shell programming right?help about chmod
求教,学shell program[转载] 那里有linux下的I/O Benchmark program?
Shell Script Question如果一直都不logout的话
如何在Solaris 下周期性地自动执行一个 shell script帮帮忙,用C作一个SHELL
菜鸟2问题-about shell programmingA question about cron job
菜鸟问题-about shell programmingSolaris 10网络安装问题
相关话题的讨论汇总
话题: shell话题: ftp话题: do话题: script