歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> SHELL編程 >> SCO OPenServer 5下通用的命令行下安裝VOL格式的軟件的shell程序

SCO OPenServer 5下通用的命令行下安裝VOL格式的軟件的shell程序

日期:2017/2/28 11:25:40   编辑:SHELL編程



CODE:#!/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 "軟件安裝完畢!"

Copyright © Linux教程網 All Rights Reserved