ChinaUnix.net
相关文章推荐:

文件系统制作 shell脚本

我写的一篇技术文档,和大家分享一下。 Linux下制作安装程序有很多第三方工具,还有RPM包这种规范形式;然而要做很多适合项目要求的个性安装设置,还是自己动手用sh制作更合适。这种方法借鉴了其它一些产品的安装,增添了一些新的部分。也许有点笨,但用惯了觉得还算可以。 这种作法基本道理是生成一个大的文件,由一段sh脚本加上一个tar包组成。sh脚本负责把tar包解开并完成一些必要操作,实现安装的拷贝和设置。这...

by hait - Shell - 2004-08-04 17:58:48 阅读(5239) 回复(2)

相关讨论

#!/usr/bin/sh while [ 1 ] do MAIL="yourname@mail.vom" HOSTNAME=`hostname` TIME=`/usr/bin/date "+%Y%m%d"` echo "=======================================================">/tmp/mon.stat.tmp echo " This is a monitor's log file ">>/tmp/mon.stat.tmp echo "=======================================================">>/tmp/mon.stat.tmp echo "CURRENT TIME is :$TIME">>/tmp/mon.stat.tm...

by Ecore - Shell - 2007-11-03 11:53:48 阅读(3395) 回复(4)

用于 ARM 的GNU交叉编译和调试工具链,全部采用最新版本的软件包(截止2009年5月10日): Binutils-2.19.1 GCC-4.4.0 Glibc-2.9 Glibc-ports-2.9 GMP-4.3.0 MPFR-2.4.1 GDB-6.8 Insight-6.8 特点: 支持EABI,支持Soft-Float(软浮点),包含交叉调试工具 GDB、gdbserver 和 Insight 。 制作过程在这篇文章里已做详细说明: http://blog.chinaunix.net/u/7459/showart_1957523.html 我把整个制作过程用shell脚本写了出来,脚...

by wwxbei - Linux文档专区 - 2009-06-06 21:24:20 阅读(1211) 回复(0)

使用说明:将以下shell保存成文件与原始ISO放在一起后运行即可,注意该目录需要有写权限。 #!/bin/bash # # Usage: # Put this file in the same directory with the source ISO, the install # source will be automatically put on ./INSTALL # Function: # Extract the installation source files from ISOs for network installation # # By Frank.Lin (2006-07-30) mkdir ./mount_dir mkdir ./INSTALL for ISO in `ls *....

by rain_forest - 系统管理 - 2006-09-13 13:36:19 阅读(689) 回复(3)

使用说明:将以下shell保存成文件与原始ISO放在一起后运行即可,注意该目录需要有写权限。 #!/bin/bash # # Usage: # Put this file in the same directory with the source ISO, the install # source will be automatically put on ./INSTALL # Function: # Extract the installation source files from ISOs for network installation # # By Frank.Lin (2006-07-30) mkdir ./mount_dir mkdir ./INSTALL for ISO in `ls *....

by rain_forest - Linux系统管理 - 2006-09-13 13:36:19 阅读(1359) 回复(3)

http://www.bsdlife.org/wiki/images/Mk_openbsd_iso-0.2.1.sh 查看俺的新主页以跟踪该脚本的更新: http://www.bsdlife.org/wiki/index.php/User:Bibby#.E4.B8.AA.E4.BA.BA.E4.BD.9C.E5.93.81 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/10604/showart_150465.html

by MichaelBibby - BSD文档中心 - 2006-08-03 17:36:21 阅读(1030) 回复(0)

问题是这样的,我想让RPM包安装的时候等待我的输入信息 举个简单的例子,比如我在安装的时候会提示要用户输入“accept或cancel”,我在.spec文件中的%pre内写了 echo "accept/cancel" read a if [ $a != "accept" ] then exit 0 fi 暂且不管这段代码写的怎么样,但是在安装RPM的时候根本没让我输入东西,然后它就报错,说if这里语法有错line 3: [: !=: unary operator expected 请问,如果我要实现上述功能,也就是在安装...

by hjxisking - Shell - 2005-11-17 13:39:46 阅读(3094) 回复(5)

ssh 192.168.40.$i '/usr/bin/test -f /sbin/mkfs.ext4 && ls /dev/sd*1 | grep -v sda | while read disk;do /sbin/mkfs -t ext4 $disk & done || mkfs -t ext3 /dev/sdb1 &' 为什么不能执行

by OymfO - Shell - 2014-09-17 10:11:01 阅读(959) 回复(6)

要求写出Linux操作系统所有进程中占CPU超过10% 内存超过10%的进程信息输出到/tmp/mang.log文件中,然后调用系统邮箱将该文件发送到指定邮箱[email]root@mail.com[/email] ,编写定时任务,每周五的上午8点下午5点执行该任务,其他时间在晚上23点执行该任务。

by wangxiaoming135 - Linux新手园地 - 2014-08-26 09:03:35 阅读(919) 回复(8)

我在编写一个练习脚本时如图,为什么if判断语句报错说 期待整数表达式

by linux小小菜鸟 - Shell - 2013-12-07 19:19:59 阅读(1947) 回复(5)

大神们好,小弟想认真学习下shell脚本,能够自己独立写脚本,希望大神们给推荐几本书吧,谢谢了

by 我不重要 - Shell - 2013-09-16 13:47:33 阅读(3875) 回复(6)