例子1:
[maokx@localhost example]$ more trapping
#!/bin/sh
# Scriptname: trapping
# Script to illustrate the trap command and signals
trap 'echo "Ctrl-C will not terminate $0."' 2
trap 'echo "Ct...
分类:
系统相关 时间:
2015-03-10 12:08:44
阅读次数:
173
1. 在类UNIX系统上作为脚本运行在类Unix系统上,你可以设置一个shell前导词来执行脚本。如下例:Script.scala#!/usr/bin/env scala!#println("Hello" + args(0))先输入chmod +x Script.scala,确保对Script.sc...
分类:
其他好文 时间:
2015-03-09 22:15:31
阅读次数:
333
这两天写一个demo,需要用到提示并跳转,主要页面要求不高,觉得没必要使用AJAX,JS等,于是研究了下怎么在PHP提示并跳转。开始先是用了下面这种:代码如下:echo"<script>alert(‘sucess‘);parent.location.href=‘/user/index‘;</script>";alert里面是提示的消息,..
分类:
Web程序 时间:
2015-03-09 19:18:52
阅读次数:
149
#!/bin/bash ?
# ??
# Script to start LVS DR real server. ??
# description: LVS DR real server ??
# ??
. ?/etc/rc.d/init.d/functions
VIP=192.168.1.207 ? #这里根据需要改成自己的VIP地址
ho...
分类:
其他好文 时间:
2015-03-09 16:23:53
阅读次数:
128
JavaScript 代码: <script?type="text/javascript">??
????$(document).ready(function(){??
????????var?saveDataAry=[];??
????????var?data1={"userName":"test","address":"g...
分类:
编程语言 时间:
2015-03-09 11:11:27
阅读次数:
1858
nginx的配置文件语法高亮在nginx安装成功之后,打开其配置文件,配置文件内往往都没有语法高亮。如下图白色部分为生效的选项。要想对其做语法高亮需要一个文件nginx.vim,可在网上下载到。配置过程[root@www~]#mkdir.vim/syntax–pv//创建.vim目录并在其下再创建一个syntax目?.
分类:
其他好文 时间:
2015-03-09 01:54:54
阅读次数:
159
作者:gnuhpc fromhttp://blog.csdn.net/gnuhpchttp://gnuhpc.wordpress.com/本文环境:ubuntu 10.10/vim7.2基本配置1) 建立基本环境:建立三个目录:mkdir ~/.vim/{plugin,doc,syntax} -p建...
分类:
系统相关 时间:
2015-03-07 22:41:49
阅读次数:
225
jQuery Validate验证框架详解 jQuery校验官网地址:http://bassistance.de/jquery-plugins/jquery-plugin-validation 一、导入js库 <script?type="text/javascript"?src="<%=path?%>/validate/jquery-1.6.2.mi...
分类:
Web程序 时间:
2015-03-07 11:42:56
阅读次数:
299