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
どんな助けでも大歓迎です。
ありがとう、