X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Message-Id: <1344396878.20779.140661112064606.7AB245A7@webmail.messagingengine.com> From: Mark Smith To: cygwin MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain Subject: running interactive process on xp through cron not working Date: Fri, 10 Aug 2012 10:15:22 +0900 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com so I am trying to run notepad through cron on my xp machine, but it simply won't work. running cron-config works fine: --- $ cron-config Cron is already installed as a service under account LocalSystem. Do you want to remove or reinstall it? (yes/no) yes OK. The cron service was removed. Do you want to install the cron daemon as a service? (yes/no) yes Enter the value of CYGWIN for the daemon: [ ] ntsec You must decide under what account the cron daemon will run. If you are the only user on this machine, the daemon can run as yourself. This gives access to all network drives but only allows you as user. Otherwise cron should run under the local system account. It will be capable of changing to other users without requiring a password, using one of the three methods detailed in [cut out to trick anti-spam-bot] Do you want the cron daemon to run as yourself? (yes/no) no Running cron_diagnose ... ... no problem found. Do you want to start the cron daemon as a service now? (yes/no) yes OK. The cron daemon is now running. In case of problem, examine the log file for cron, /var/log/cron.log, and the appropriate syslog file for information about the problem cron is having. Examine also any cron.log file in the HOME directory (or the file specified in MAILTO) and cron related files in /tmp. If you cannot fix the problem, then report it to [cut out to trick anti-spam-bot]. Please run the script /usr/bin/cronbug and ATTACH its output (the file cronbug.txt) to your e-mail. WARNING: PATH may be set differently under cron than in interactive shells. Names such as "find" and "date" may refer to Windows programs. --- my crontab: --- * * * * * touch /tmp/crontab.working --- After doing this, my cron job seems to execute fine, the timestamp of /tmp/crontab.working updates every minute. However, when I set the cron service to allow to interact with the desktop (start-run-services.msc-cron-Log On-Allow service to interact with desktop), my crontab stops executing, even though cron continues to be running. Even after restarting cron, my crontab does not execute, my /tmp/crontab.working timestamp remains untouched. running cronevents.exe to see the eventlog of cron, the touch command seems to get executed, but there is no error, and the timestamp does not update which leads me to believe that somehow windows prevents the command to be executed, even though cron does seem to issue the command... Any ideas on how to make cron work to allow me run programs interactively like notepad? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple