- 博客(6)
- 资源 (2)
- 收藏
- 关注
转载 在shell中如何判断一个变量是否为空
判断一个脚本中的变量是否为空,我写了一个这样的shell脚本:#!/bin/sh #filename: test.sh para1=if [ ! -n $para1 ]; then echo "IS NULL"else echo "NOT NULL"fi 然后把该脚本:test.sh通过chmod +x 改为可以执行的脚本,执行后输出的结果为: NOT NULL,很是奇
2012-02-24 11:05:07 371
转载 The Interrupt handling in Korn shell and C Shell
1.Interrupt handling in KSH2.Interrupt handling in CSH1.Interrupt handling in KSH The interrupt handling in Korn shell programs is done using trap command.TRAPThe programs in gener
2012-02-24 10:32:20 578
转载 如何用mysqldump --ignore-table多个表
mysqldump -uroot -p test --ignore-table=test.a --ignore-table=test.a2 >a.sql;./mysqldump --opt --host=localhost --ignore-table=tr069.Backup --ignore-table=tr069.ACSLogs --ignore-table=tr069.CPEL
2012-02-24 09:43:53 18730 1
翻译 修复数据表(mysql repair table-Can’t open file: ‘[Table]mytable.MYI’.)
也许很多人遇到过类似Can’t open file: ‘[Table]mytable.MYI’ 这样的错误信息,却不知道怎么解决他,下面我们做个介绍,多数情况下,数据库被破坏只是指索引文件受到了破坏,真正的数据被破坏掉的情况非常少。大多数形式的数据库破坏的的修复相当简单,修复的方式也有三种。下面讲的方法只对MyISAM格式的表有效。其他类型的损坏需要从备份中恢复。1,REPAIR TABL
2012-02-22 22:10:43 491
转载 Linux Start Restart and Stop The Cron or Crond Service
How do I start, restart and stop the cron service under Linux / UNIX / BSD like operating systems?Cron (crond) daemon or service is use to execute scheduled commands or scripts. cron wakes up ever
2012-02-17 13:05:59 332
转载 What is a cronjob and how do I use it?
The cron daemon is a long running process that executes commands at specific dates and times. To schedule one-time only tasks with cron, useat or batch. For commands that need to be executed repeate
2012-02-17 12:53:57 429
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人