Linux
共 6 篇文章
【原】shell 收集
【基础shell语法】 时间差 $((($(date -d 2011-04-12 +%s) - $(date -d 2011-03-12 +%s))/86400)) 按时间倒序 ls -l --time-style=long-iso 指定时间 touch -t 201104040000 abc 时间查找 find . -type f -name "*.xml" -mtime +59 -exec ls -l {} \; 【函数 if】 function changeHost { if [ -e $HOST_DIR ] ; then sed s/.*$1/"$2 $1"/ $HOST_DIR >…
2011-04-12 19:08 · Linux · XML · F#
【转】apache加载php时出错报undefined symbol: sqlite3ExprDelete
运行apache服务时,出错: httpd: Syntax error on line 53 of /usr/devsoft/apache/conf/httpd.conf: Cannot load /usr/devsoft/apache/modules/libphp5.so into server: /usr/devsoft/apache/modules/libphp5.so: undefined symbol: sqlite3ExprDelete 但是我在另外一个环境上并没有该问题,所以应该是不需要sqlite的;报这种错误一般是编译、链接出错; 之前改了参数重新configure后没有m…
2010-11-22 08:16 · Linux · HTML · Apache · PHP · Blog · SQLite
【原】Linux shell 定时打包备份脚本
花二个小时学习了一下 shell 脚本, 做一个定时备份程序,把我的工作内容每天自动备份一次: 山寨代码如下: #!/bin/sh # Created at 2010-11-18 by Lv Chester # # This script is used to bakup a folter at 0'oclock every day #bakup folter at 11 hour 11 minute 11 seconds bak_time="235959" #Init pre bakup time pre_day="19970101" # Loop and check the time w…
2010-11-18 23:00 · Linux · 工作 · 脚本 · Linux
【转】linux 打包压缩命令
tar命令 [root@linux ~]# tar [-cxtzjvfpPN] 文件与目录 .... 参数: -c :建立一个压缩文件的参数指令(create 的意思); -x :解开一个压缩文件的参数指令! -t :查看 tarfile 里面的文件! 特别注意,在参数的下达中, c/x/t 仅能存在一个!不可同时存在! 因为不可能同时压缩与解压缩。 -z :是否同时具有 gzip 的属性?亦即是否需要用 gzip 压缩? -j :是否同时具有 bzip2 的属性?亦即是否需要用 bzip2 压缩? -v :压缩的过程中显示文件!这个常用,但不建议用在背景执行过程! -f :使用档名,请留意…
2010-11-09 13:56 · Linux · C · C++ · Bash · C# · Linux
Linux 不能上网解决办法
From : http://mintelong.iteye.com/blog/458575 Determining IP information for eth0 /etc/sysconfig/network-scripts/ifcfg-eth0 check_link_down (){ return 1; } ifconfig eth0 up 自动获得IP
2010-09-16 22:49 · Linux · Blog · UP · Linux
linux svn
refrence from : http://www.yolinux.com/TUTORIALS/Subversion.html#COMMAND Subversion Introduction: Subversion is a software source code "Change Management" (CM) system for collaborative development. It maintains a history of file and directory versions. The files and directories are checked out of t…
2010-06-19 16:16 · Linux · Bash · Tcl · Linux · SVN · subversion