Chinaunix首页 | 论坛 | 博客
  • 博客访问: 92216911
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类:

2008-04-10 21:56:27

作者:sdccf  出处:Unix爱好者家园unix-cd.com   
#!/bin/sh
#
# SCO OPenServer 5下通用的命令行下安装VOL格式的软件的shell程序

echo -n "请输入要安装的软件的所在目录:"
read VolPath
VDIR=$VolPath
VOLS=$VDIR/VOL.000.000

component=`grep "component" < $VOLS | head -1 | cut -d= -f2 | cut -d: -f1`
package=`grep "component" < $VOLS | head -1 | cut -d= -f2 | cut -d: -f2`

custom -p $component:$package -i -z $VDIR

echo "软件安装完毕!"
阅读(636) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~