http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net
发布时间:2011-10-16 15:38:23
16.2 ioctl函数 我们可以把和网络有关的请求分为6类:1)套接口操作;2)文件操作3)接口操作4)ARP高速缓存操作5)路由表操作6)流系统 16.3 &n.........【阅读全文】
发布时间:2011-10-14 10:56:23
#! /bin/bash# crond Start/Stop the cron clock daemon.## chkconfig: 2345 90 60# description: cron is a standard UNIX program that runs # user-specified programs at periodic scheduled times.# config: /etc/crontab# pidfile: /var/run/crond.pid# Source function library.. /etc/init.d/functio.........【阅读全文】
发布时间:2011-10-14 10:45:45
#!/bin/bash# Scriptname: wholenum# Purpose:The expr command tests that the user enters an # integer -- bash shell echo "Enter an integer."read numberif expr "$number" + 0 >& /dev/null then :else echo "You did not enter an integer value." exit 1fi.........【阅读全文】
发布时间:2011-10-14 10:25:20
#!/bin/bash# Scriptname: todebugname="Joe Shmoe"if [[ $name == "Joe Blow" ]]then printf "Hello $name\n"fideclare -i num=1while (( num < 5 ))do let num+=1doneprintf "The total is %d\n", $num......【阅读全文】