【问题标题】:Startup Notepad with Cygwin's cron使用 Cygwin 的 cron 启动记事本
【发布时间】:2012-02-09 15:19:29
【问题描述】:

我想用 Cygwin 的 cron 启动记事本。我可以从 cron 运行脚本,所以我知道 cron 正在工作。但是,当我想启动记事本时,它不会在前台启动程序。我试图以各种方式在 crontab 上启动它,但没有成功。这是 cronevents:

CMD (C:\windows\notepad.exe)
CMD (notepad.exe &)
CMD (C:\cygwin\bin\bash.exe -l -c "C:\windows\notepad.exe &")
CMD (C:\cygwin\bin\bash.exe -l -c "C:\windows\notepad.exe")
CMD (C:\cygwin\bin\bash.exe -l -c "C:\windows\notepad.exe" &)
CMD (C:\cygwin\bin\bash.exe -l -c notepad &)
CMD (C:\cygwin\bin\bash.exe -l -c C:\windows\notepad.exe &)
CMD (notepad &^I)
CMD (notepad )

这是当前 crontab -l 的样子:

$ crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.KhwbuL8Q3t installed on Thu Feb  9 08:56:32 2012) 
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
#My Crontab file


*/1 * * * *     notepad

任何帮助将不胜感激。

谢谢,

【问题讨论】:

  • 为什么要从 cron 启动记事本?

标签: cron cygwin foreground notepad


【解决方案1】:

您可以尝试以下作为 cron 命令吗?

cmd /C "C:\windows\notepad.exe"

【讨论】:

    猜你喜欢
    • 2013-06-05
    • 1970-01-01
    • 1970-01-01
    • 2013-08-13
    • 2023-03-14
    • 2016-09-07
    • 2016-04-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多