由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 能这样么?
相关主题
can anyone post a FTP auto get script ?如何让程序在logout以后继续运行?
how to run background process after logoutwhat's wrong with this ftp batch file?
questionJob control question???
关于nohup的问题Apache中如何加入用户和口令?
where is user.listhelp
[转载] 再来一份UNIX的题。请教后台运行
how to leave a process running even logout?怎么能查到自己的uid?
how to run program background even lougout?[转载] Help ! hwo to get the # of cpu's ???
相关话题的讨论汇总
话题: ftp话题: server话题: eof话题: password话题: user
进入Unix版参与讨论
1 (共1页)
F**********e
发帖数: 2135
1
我是unix菜鸟。telnet到学校unix server,ftp下载另一个ftp server上一个大文件大约需
要10小时。等于用那台unix server作ftp client.
我的问题是:这10小时里面,我能不能关闭我本机telnet终端(或者关机
),而让server继续执行那个ftp命令?
如果可以,需要敲些什么命令?
//bow!
X****r
发帖数: 3557
2
setup a script that do the ftp without interacting with the terminal,
then run it and detach it from shell, or run it through at(1).
you can logout, but can't shutdown the computer in any cases.

【在 F**********e 的大作中提到】
: 我是unix菜鸟。telnet到学校unix server,ftp下载另一个ftp server上一个大文件大约需
: 要10小时。等于用那台unix server作ftp client.
: 我的问题是:这10小时里面,我能不能关闭我本机telnet终端(或者关机
: ),而让server继续执行那个ftp命令?
: 如果可以,需要敲些什么命令?
: //bow!

F**********e
发帖数: 2135
3
detach from shell.....不会,sigh

【在 X****r 的大作中提到】
: setup a script that do the ftp without interacting with the terminal,
: then run it and detach it from shell, or run it through at(1).
: you can logout, but can't shutdown the computer in any cases.

s**s
发帖数: 242
4
ftp -ni<<_EOF
open server
user usr_name
passwd_here
ftp_command_here
...
...
quit
_EOF
or you can use wget

【在 F**********e 的大作中提到】
: 我是unix菜鸟。telnet到学校unix server,ftp下载另一个ftp server上一个大文件大约需
: 要10小时。等于用那台unix server作ftp client.
: 我的问题是:这10小时里面,我能不能关闭我本机telnet终端(或者关机
: ),而让server继续执行那个ftp命令?
: 如果可以,需要敲些什么命令?
: //bow!

F**********e
发帖数: 2135
5
这是一段script?
把他存成一个文件以后怎么运行它?直接敲名字?
它运行以后就自动在后台了?
如果不在后台怎么把它切换到后台?ctrl-z?
这时候我log off就没问题了么?
请详细指教一下,bow

【在 s**s 的大作中提到】
: ftp -ni<<_EOF
: open server
: user usr_name
: passwd_here
: ftp_command_here
: ...
: ...
: quit
: _EOF
: or you can use wget

s**s
发帖数: 242
6
save it to a file(for example ftp.sh),
then run it:
sh ftp.sh >log &

【在 F**********e 的大作中提到】
: 这是一段script?
: 把他存成一个文件以后怎么运行它?直接敲名字?
: 它运行以后就自动在后台了?
: 如果不在后台怎么把它切换到后台?ctrl-z?
: 这时候我log off就没问题了么?
: 请详细指教一下,bow

F**********e
发帖数: 2135
7
还是不行
用自己的ftp server试验,发现死在user 命令以后,script在user name
ok以后就idle了,不给password
hehe

【在 s**s 的大作中提到】
: ftp -ni<<_EOF
: open server
: user usr_name
: passwd_here
: ftp_command_here
: ...
: ...
: quit
: _EOF
: or you can use wget

l**d
发帖数: 42
8
wget -b

【在 F**********e 的大作中提到】
: 我是unix菜鸟。telnet到学校unix server,ftp下载另一个ftp server上一个大文件大约需
: 要10小时。等于用那台unix server作ftp client.
: 我的问题是:这10小时里面,我能不能关闭我本机telnet终端(或者关机
: ),而让server继续执行那个ftp命令?
: 如果可以,需要敲些什么命令?
: //bow!

l**d
发帖数: 42
9

nohup

【在 s**s 的大作中提到】
: save it to a file(for example ftp.sh),
: then run it:
: sh ftp.sh >log &

A***e
发帖数: 130
10
man netrc
for non-interactive ftp
man nohup
for continuing after logout.

【在 F**********e 的大作中提到】
: 我是unix菜鸟。telnet到学校unix server,ftp下载另一个ftp server上一个大文件大约需
: 要10小时。等于用那台unix server作ftp client.
: 我的问题是:这10小时里面,我能不能关闭我本机telnet终端(或者关机
: ),而让server继续执行那个ftp命令?
: 如果可以,需要敲些什么命令?
: //bow!

B**z
发帖数: 153
11
change to one line for username & password
user username password

【在 F**********e 的大作中提到】
: 还是不行
: 用自己的ftp server试验,发现死在user 命令以后,script在user name
: ok以后就idle了,不给password
: hehe

q*******t
发帖数: 29
12
I think it better to use expect.

【在 B**z 的大作中提到】
: change to one line for username & password
: user username password

s**s
发帖数: 242
13
sorry,username和password是应该在一行,
很久以前在学校曾用这方法偷email服务器上的流量:),
肯定是行得通的!
在我的机器上试了一下:
ftp.sh:
ftp -ni<<_EOF
open server
user uname passwd
dir
quit
_EOF
然后sh ftp.sh>log &
肯定没问题!

【在 B**z 的大作中提到】
: change to one line for username & password
: user username password

c***a
发帖数: 655
14
其实用一下screen不久行了么

【在 s**s 的大作中提到】
: sorry,username和password是应该在一行,
: 很久以前在学校曾用这方法偷email服务器上的流量:),
: 肯定是行得通的!
: 在我的机器上试了一下:
: ftp.sh:
: ftp -ni<<_EOF
: open server
: user uname passwd
: dir
: quit

1 (共1页)
进入Unix版参与讨论
相关主题
[转载] Help ! hwo to get the # of cpu's ???where is user.list
How to check OS information ?[转载] 再来一份UNIX的题。
请问在UNIX系统如何后台运行MATLAB 程序??how to leave a process running even logout?
[转载] telnet低级问题how to run program background even lougout?
can anyone post a FTP auto get script ?如何让程序在logout以后继续运行?
how to run background process after logoutwhat's wrong with this ftp batch file?
questionJob control question???
关于nohup的问题Apache中如何加入用户和口令?
相关话题的讨论汇总
话题: ftp话题: server话题: eof话题: password话题: user