Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > lockfile
【标  题】:lockfile
【关键字】:lockfile
【来  源】:http://www.cublog.cn/u/22178/showart.php?id=154741

lockfile

Your Ad Here

lockfile

lockfile [options] filenames

Create semaphore file(s), used to limit access to a file. When lockfile fails to create some of the specified files, it pauses for eight seconds and retries the last one on which it failed. The command processes flags as they are encountered (i.e., a flag that is specified after a file will not affect that file). This command is most often used by scripts and applications as a way to avoid multiple users changing the same file at once.

Options

-sleeptime

Number of seconds lockfile waits before retrying after a failed creation attempt. Default is 8.

-!

Invert return value. Useful in shell scripts.

-l lockout_time

Time (in seconds) after a lockfile was last modified at which it will be removed by force. See also -s.

-ml, -mu

If the permissions on the system mail spool directory allow it or if lockfile is suitably setgid, lockfile can lock and unlock your system mailbox with the options -ml and -mu, respectively.

-r retries

Stop trying to create files after this many retries. The default is -1 (never stop trying). When giving up, remove all created files.

-s suspend_time

After a lockfile has been removed by force (see -l), a suspension of 16 seconds takes place by default. (This is intended to prevent the inadvertent immediate removal of any lockfile newly created by another program.) Use -s to change the default suspend time.

logger:【上一篇】
locate:【下一篇】
【相关文章】
没有相关文章
【随机文章】
  • VBScript 数学函数
  • 2004年惊心动魄的几个数字
  • 在windows2k下安装配置subversion1.2+apache2
  • php命令行脚本多进程并发执行
  • ip cef 命令
  • 我的邮件系统安装过程(linux AS4+qmail+vpopmail+YoU Webmail)三
  • wget下载一个网页时的一个问题
  • redwall firewall-0.5.5 VPN 不能使用 web-configure
  • 项目经理与我,谁之错?
  • Imake study 2
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.