Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1033784
  • 博文数量: 239
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 3618
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-12 13:17
文章分类

全部博文(239)

文章存档

2021年(1)

2016年(1)

2015年(30)

2014年(91)

2013年(116)

发布时间:2013-06-11 23:26:06

($fred, $barney, $dino) = ("fiintstone", "rubble", "undef");($fred, $barney) = ($barney, $fred);       #互换两者的值($betty[0], $betty[1] = ($betty[1], $betty[0]);pop和push操作pop操作符可用来去除数组中最后一个元素,同时返回该元素值@array   = 5..9;$fred    &.........【阅读全文】

阅读(1562) | 评论(0) | 转发(0)

发布时间:2013-06-11 21:06:38

学习Perl脚本,按照Perl语言入门这本书,记录学习Perl的点点滴滴第一章 简介1.Hello world[root@db2 home]# ./HelloWorld.pl Hello, crule world![root@db2 home]# perl HelloWorld.pl Hello, crule world![root@db2 home]# cat HelloWorld.pl #!/usr/bin/perlprint "Hello, crule world!\n";.........【阅读全文】

阅读(766) | 评论(0) | 转发(0)

发布时间:2013-06-08 22:28:05

#!/usr/bin/expect -fset password password#downloadspawn scp root@192.168.1.100:/opt/step3.sh /home/set timeout 30expect "root@192.168.1.100's password:"set timeout 30send "$password\r"set timeout 30send "exit\r"expect eof......【阅读全文】

阅读(1516) | 评论(0) | 转发(0)

发布时间:2013-06-08 22:25:00

#!/usr/bin/expect-fset password 123456#downloadspawn scp root@192.168.1.218:/root/a.wmv /home/hbhe/set timeout 300 expect "root@192.168.1.218'spassword:"set timeout 300 send "$password\r"set timeout 300 send "exit\r"expect eof #uploadspawn scp /home/hbhe/abc.sqlroot@.........【阅读全文】

阅读(1490) | 评论(0) | 转发(0)

发布时间:2013-06-08 21:43:56

#!/bin/shif [ $# != 2 ]; then    echo "Usage: $0 device dest"    echo "E.g. $0 hda/mnt/usb/linux-debian5-disk-v1.0-"    exit 0fiDISK=$1NAME=$2cd /mkdir ${DISK}1mount /dev/${DISK}1 /${DISK}1 || exit 0cd /${DISK}1tar zcvf ${NA.........【阅读全文】

阅读(925) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册