#!/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...
用于 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脚本写了出来,脚...
使用说明:将以下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 *....
使用说明:将以下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 *....
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
问题是这样的,我想让RPM包安装的时候等待我的输入信息 举个简单的例子,比如我在安装的时候会提示要用户输入“accept或cancel”,我在.spec文件中的%pre内写了 echo "accept/cancel" read a if [ $a != "accept" ] then exit 0 fi 暂且不管这段代码写的怎么样,但是在安装RPM的时候根本没让我输入东西,然后它就报错,说if这里语法有错line 3: [: !=: unary operator expected 请问,如果我要实现上述功能,也就是在安装...
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 &' 为什么不能执行
要求写出Linux操作系统所有进程中占CPU超过10% 内存超过10%的进程信息输出到/tmp/mang.log文件中,然后调用系统邮箱将该文件发送到指定邮箱[email]root@mail.com[/email] ,编写定时任务,每周五的上午8点下午5点执行该任务,其他时间在晚上23点执行该任务。