Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

UNIX/linuxϵͳÏÂFTP×Ô¶¯ÉÏ´«Îļþ½Å±¾

·½·¨Ò»£º Expect ʵÏÖ½»»¥
UNIX ´°¿ÚÖÐ ÊäÈëÒÔÏÂÃüÁ
expect ftplinux.txt 10.0.15.22 ftplinux.txt
ftplinux.txt ÖÐÄÚÈÝÈçÏ£º
--¿ªÊ¼-----
spawn ftp [lindex $argv 0]
expect "Name(*):"
send "ftp\r"
expect "Password:*"
send "hell05a\r"
expect "ftp>"
send "binary\r"
expect "ftp>"
send "hash\r"
expect "ftp>"
send "put [lindex $argv  1]\r"
expect "* Transfer complete."
send "exit\r"
-----½áÊø----
¿É½« Îļþftplinux.txt ÉÏ´«µ½¶Ô·½FTPĬÈÏĿ¼ÏÂ
·½·¨¶þ£º ftp Ö±½ÓʵÏÖ½»»¥
FTP×Ô¶¯µÇ¼ÅúÁ¿ÏÂÔØÎļþ
¡¡
¡¡¡¡´Óftp·þÎñÆ÷192.168.1.171ÉϵÄ/home/data µ½±¾µØµÄ/home/databackup
---½¨Á¢Ò»¸öÎļþ ftp.ssh  ÃüÁ vi ftp.ssh
---¿ªÊ¼-----¡¡
!/bin/bash
ftp -v -n 192.168.1.171
user guest 123456
binary
cd /home/data
lcd /home/databackup
prompt
mget *
close
bye
----½áÊø-----------
ÔÚÃüÁîÐÐÊäÈë: ./ftp.ssh
¡¡¡¡FTP×Ô¶¯µÇ¼ÅúÁ¿ÉÏ´«Îļþ
¡¡
¡¡¡¡´Óftp·þÎñÆ÷192.168.1.171ÉϵÄ/home/data µ½±¾µØµÄ/home/databackup
---½¨Á¢Ò»¸öÎļþ ftp.ssh  ÃüÁ vi ftp.ssh
---¿ªÊ¼-----¡¡
-----¿ªÊ¼----¡¡
#!/bin/bash
ftp -v -n 192.168.1.171 << END
user guest 123456
binary
hash
cd /home/data
lcd /home/databackup
prompt
mput *
bye
END
---½áÊø-----
ÔÚÃüÁîÐÐÊäÈë: ./ftp.ssh
----É趨¶¨Ê±ÔËÐУ¬ÃüÁîÐÐÊäÈ룺
crontab -e
È»ºóÔÚÎļþÖÐÉ趨 ʱ¼ä ºÍÎļþftp.sshµÄ·¾¶
ÕâÑù¾Í¿ÉÒÔ×Ô¶¯µ÷ÓÃftp.sshÎļþÔËÐÐÉÏ´«³ÌÐò¡£
----------SFTP ÅúÁ¿×Ô¶¯ÉÏ´«·½·¨
#
!/
bin
/
bash
local_dir
=/
path
/
target_dir
=/
path
/
user
=
user
password
=
password
serverip
=
serverip
lftp
-
u $user,$password sftp:
//
$serverip <<END_SFTP
l
cd $local_dir
cd $target_dir
mput
*
bye
END_SFTP


Ïà¹ØÎĵµ£º

linuxÄں˵÷ÊÔÖ¸ÄÏ

һЩǰÑÔ
×÷ÕßǰÑÔ
֪ʶ´ÓÄÄÀïÀ´
Ϊʲô׫д±¾Îĵµ
ΪʲôÐèÒª»ã±à¼¶µ÷ÊÔ
***µÚÒ»²¿·Ö£º»ù´¡ÖªÊ¶***
×ܸ٣ºÄÚºËÊÀ½çµÄÏÝÚå
Ô´ÂëÔĶÁµÄÏÝÚå
´úÂëµ÷ÊÔµÄÏÝÚå
Ô­ÀíÀí½âµÄÏÝÚå
½¨Á¢µ÷ÊÔ»·¾³
·¢ÐаæµÄÑ¡ÔñºÍ°²×°
°²×°½»²æ±àÒ빤¾ß
bin¹¤¾ß¼¯µÄʹÓÃ
qemuµÄʹÓÃ
initrd.imgµÄÔ­ÀíÓëÖÆ×÷
x86ÐéÄâµ÷ÊÔ»·¾³µÄ½¨Á¢
ar ......

ѧϰlinux µÄµÚ¶þÌì

 ½ñÌìѧϰÁËwrite ºÍread ,»¹ÓÐopen º¯Êý¡£×îÏÂÃæÊÇÎÒ×Ô¼ºÐ´µÄÒ»¸öС³ÌÐò£¬ÊìϤһϼ¸¸ö³ÌÐòµÄÓ¦Óá£
 writeº¯ÊýÔ­ÐÍÊÇsize_t write(fd, buf, size);ÆäÖÐfdÊÇÎļþÃèÊö·û£¬Ò²ÊÇ»º³åÇøÖеĶ«Î÷½«ÒªÐ´ÈëµÄµØ·½£¬°×»°Ò»µãÀ´Ëµ£¬fd¾ÍÊÇÒ»¸öÄ㽫Ҫ·Å¶«Î÷½øÈ¥µÄÈÝÆ÷µÄ±àºÅ¡£buf ¾ÍÊÇÄãËùÒª´æµÄ¶«Î÷µÄÀ´Ô´¡£size ²»ÓÃ˵£ ......

linux×Ö·ûģʽϵķֱæÂÊÉèÖÃ

²»Í¬É«²ÊºÍ·Ö±æÂÊËù¶ÔÓ¦µÄÖµ ¡¡¡¡
    depth-----640x480----800x600----1024x768-----1280x1024
¡¡¡¡8bit---------769--------771--------773----------775
¡¡¡¡15bit--------784--------787--------790----------793
¡¡¡¡¡¡¡¡±à¼­/boot/grub/Ŀ¼ÏµÄmenu.lstÎļþ£¨ÓÐЩϵͳmenu.lstÎļþÊÇÈíÁ¬½Óµ½ ......

linux install ÃüÁî

install
1.×÷ÓÃ
installÃüÁîµÄ×÷ÓÃÊǰ²×°»òÉý¼¶Èí¼þ»ò±¸·ÝÊý¾Ý£¬ËüµÄʹÓÃȨÏÞÊÇËùÓÐÓû§¡£
2.¸ñʽ
(1)install [Ñ¡Ïî]... À´Ô´ Ä¿µÄµØ
(2)install [Ñ¡Ïî]... À´Ô´... Ŀ¼
(3)install £­d [Ñ¡Ïî]... Ŀ¼...
ÔÚǰÁ½ÖÖ¸ñʽÖУ¬»á½«<À´Ô´>¸´ÖÆÖÁ<Ä¿µÄµØ>»ò½«¶à¸ö<À´Ô´>Îļþ¸´ÖÆÖÁÒÑ´æÔÚµÄ< ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ