服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. cron Debian debian squeeze init.d
  3. 在Debian Squeeze中以xy用户身份重新启动script.py
Intereting Posts
来自WLAN客户端的DHCP请求未到达服务器 MySQL复制滞后增加 最好的开源监控工具? 如何使用Windows 7上的INETMGR连接到远程IIS RHEL 5安装RAW设备 命名服务器顺序和托pipe名称服务器 什么是video转换网站最好的EC2实例架构? 两跳SSH连接与两个独立的公钥 初始设置后无法使用pipe理员帐户login到Foreman Web控制台 Linux客户机在Hyper-V中正常关机 Windows 2008 R2任务Schduler提出以下错误“0x41301” 网卡绑定工作,但不能ping通 smtpdiag工具列出了错误的邮件服务器 重命名Exchange 2010 SP2服务器的步骤 OpenVPN的embedded式设备

在Debian Squeeze中以xy用户身份重新启动script.py

如何在Debian Squeeze中自动重新启动用户xy后启动python script.py?

  • centos cron日志不会执行
  • Cron在webmin工作
  • Cron作业:stdout到/ var / log,stderr到email
  • 脚本PHP不能在crontab中工作
  • 无法findcron服务,如何启动它?

在rc.local中input类似于以下内容的条目:

su user_xy -c "script.py" 

以该用户身份执行该程序:

 su - user_xy -c "script.py" 

您可以在用户root或用户xy的crontab中使用@reboot条目。 Debian cron支持这样的条目。

男人-S5 crontab

 string meaning ------ ------- @reboot Run once, at startup. 
  • cron作业归档比xyz天更旧的文件
  • Cron作业不会生成预期的日志文件
  • 当运行interactivelly或通过cron时,脚本bash无法获得$ PS1或$ – 的区别
  • cron.hourly脚本执行多次
  • Crontab问题与特定的日子执行
  • (bsnmpd),uid 0:退出信号6(核心转储)/语法错误:单词意外(期待“那么”)
  • 无法让cron追加wget的输出
  • 为什么cron使用与我的用户不同的Ruby,以及如何解决?
  • 克隆到anacron迁移过程
  • 我如何控制逐步file upload与cron或类似?

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy