Andrey Repin [mailto:anrdae...@yandex.ru]
Sent: Sunday, December 21, 2014 6:03 PM
To: Kertz, Denis (D)** CTR **; cygwin@cygwin.com
Subject: [SPAM?] Re: Can't Run Excel From A Cron Job Under Windows 7
Greetings, Kertz, Denis (D)** CTR **!
> I am trying to port a cygwin application that uses
Greetings, Kertz, Denis (D)** CTR **!
> I am trying to port a cygwin application that uses cron from a WinXP PC to
> a Win7 Pro PC and I find some cron jobs won't run. Specifically, I need to
> run an Excel program from a cron job and this doesn't work on my Win7 PC.
For posterity:
Turned out, t
Greetings, Kertz, Denis (D)** CTR **!
Try starting cron in terminal session and see if anything comes up.
>>
>> Stop (don't kill! Everyone, who use -KILL, must be -KILL'ed) the cron
>> service,
>> then start cron in terminal, using `runas /user:... ...'. So it would run
>> under proper user,
On Nov 12, 2014, at 9:20 AM, Kertz, Denis (D)** CTR **
wrote:
>> More like you expect to run Excel interactively from service.
>> Not possible. Period.
>
> I'm not trying to run Excel interactively from a cron job. One of the
> limitations with using Excel from a cron job is Excel has to run
>>> Try starting cron in terminal session and see if anything comes up.
>
> Stop (don't kill! Everyone, who use -KILL, must be -KILL'ed) the cron service,
> then start cron in terminal, using `runas /user:... ...'. So it would run
> under proper user, and see if anything come up, when it execute yo
Greetings, Kertz, Denis (D)** CTR **!
>>> What I mean by runs fine is that when I type this command at a bash prompt:
>>> run.excel 'c:\Shared\Bin\Create_Daily_Scorecard.xls'
>>> it runs to completion and creates a new .xls as its output. When I run
>>> this run.excel script from a cron
>> What I mean by runs fine is that when I type this command at a bash prompt:
>> run.excel 'c:\Shared\Bin\Create_Daily_Scorecard.xls'
>> it runs to completion and creates a new .xls as its output. When I run
>> this run.excel script from a cron job it hangs.
>
> Hangs as in - do not crea
Denis,
If Excel is starting a macro in the worksheet, it might be worth
adding some logging to the visual basic code. Perhaps try this in
your Excel macro code if that is where the processing is taking place:
'--- Set up variables near the top of your macro.
'--- (Check whether you want the
Greetings, Kertz, Denis (D)** CTR **!
>>> An excel program is run like this:
>>
>>> run.excel 'c:\Shared\Bin\Create_Daily_Scorecard.xls'
>>
>>> When I run an Excel program interactively with this run.excel script it
>>> runs just fine but when I run it via a cron job Excel just hangs.
>>
>> An excel program is run like this:
>
>> run.excel 'c:\Shared\Bin\Create_Daily_Scorecard.xls'
>
>> When I run an Excel program interactively with this run.excel script it
>> runs just fine but when I run it via a cron job Excel just hangs.
>
> Define "runs fine" please?
> What exactly th
Greetings, Kertz, Denis (D)** CTR **!
> I am trying to port a cygwin application that uses cron from a WinXP PC to
> a Win7 Pro PC and I find some cron jobs won't run. Specifically, I need to
> run an Excel program from a cron job and this doesn't work on my Win7 PC.
> In order to run an Excel p
11 matches
Mail list logo