Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


StuartS
2010-02-08T11:18:23Z
I want to run a "clean-up" program on system restart. I've added a task which should start with the system startup trigger, but it never runs. If I run it manually, the job works.

I have noticed that - on the "Main Settings" screen for the job - it refuses to store credentials. If I enter the usual Admin authority (which I use for all other jobs ok), then press "OK", it appears to save them. But hen I open the job to review it, the credentials have not been saved, and are reset to "none".

I'm running 5.4.7 on Windows XP SP2.
Sponsor
Forum information
Support
2010-02-08T11:20:55Z
Hi,

could you attach server_startup.txt from the log folder?

I am not sure which main settings. We have no Credentials in the main settings of a Job. Could you add an attachment for that as well?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
StuartS
2010-02-08T11:33:52Z
Hi Henrik

Thanks for a quick reply.

The credentials are on the Triggers -> Add/Edit Event for the Startup trigger (I'll try to attach a screen shot).
File Attachment(s):
server_startup.txt (5kb) downloaded 50 time(s).
StuartS attached the following image(s):
Support
2010-02-08T11:34:39Z
Ok, we will disable that as the Credentials are not needed for this Trigger.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2010-02-08T11:35:39Z
Seems like this Job started: WebcamImgUpload

Was not that Job using the System start Trigger?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
StuartS
2010-02-08T11:53:00Z
Hi Henrik

No. The system restarted at 06:20:35, and VC was ready to reschedule all jobs by 06:21:17.

The only job that should have run, is "WebcamHourly" (the clean-up job) - which you can see VC has scheduled for its next normal run-time (07:01:30).

"WebcamImgUpload" is a task that normally runs every minute (you can see VC has rescheduled it for 06:22:00). BUT on system restart, I don't want anything to run until job "zReboot startup" has completed. But job "zReboot startup" didn't run at all, because the system restart trigger doesn't seem to be working.

To clarify: job "zReboot startup" is the one with the system restart trigger.

Regards

Stuart
Support
2010-02-08T12:11:12Z
I really can't see why this event was not triggered for you. We have tested this a lot but will add more debugging.

But please just verify that the System start Trigger is active and that you have checked "Trigger when computer starts".
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
StuartS
2010-02-08T12:24:35Z
Hi Henrik

please just verify that the System start Trigger is active - Yes

and that you have checked "Trigger when computer starts" - Yes.

Regards

Stuart
Support
2010-02-08T12:27:58Z
Ok, we will add this debugging. Maybe the new version will be added some day this week.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
StuartS
2010-02-08T13:30:06Z
StuartS
2010-02-08T16:54:25Z
Hi Henrik

Further to our conversation earier today, I've written the following batch file. It all works, except the last command, when I'm trying to load VCTray.exe.

rem Reboot sequence
rem @echo off
rem cls
rem stop Visual Cron client
taskkill /f /IM VisualCronClient.exe
rem stop Visual Cron tray
taskkill /f /IM VCTray.exe
rem stop Visual Cron service (this also kills VisualCronService.exe)
sc stop VisualCron
rem run WebcamHourly & WebcamWriteImagesPage
C:\CCPSupport\DataFTP\CCPData WebcamHourly
C:\CCPSupport\DataFTP\CCPData WebcamWriteImagesPage
rem start Visual Cron service (this also reloads VisualCronService.exe)
sc start VisualCron
rem start Visual Cron tray
"C:\Program Files\VisualCron\VCTray.exe"


I've also tried:
start "C:\Program Files\VisualCron\VCTray.exe"
start /B "C:\Program Files\VisualCron\VCTray.exe"

but then, the batch file finishes but VCTray is not loaded.

VCTray.exe loads ok if I double click on it in C:\Program files\VisualCron.

I guess the question is, how do you load VCTray from a batch file?
Support
2010-02-08T16:55:55Z
You don't need to load VCTray.exe. It will auto start and it does not matter if that is running even though the service is not running. The tray client only do foreground execution and will only do that if the service is running (and telling it to).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
StuartS
2010-02-08T17:02:54Z
Hi Henrik

How does it auto-start?

Please remember that I've now set the Visual Cron service to "manual" start. On reboot, my batch file kills all VC services (including VCTray) to ensure that VC is not running when I run the clean-up job. Then I restart VC.

Are you saying that VCTray loads on reboot automatically? If so, then I guess I shouldn't kill it (as long as it doesn't interfere with the clean-up.) But it doesn't auto-start when I restart the VC service.
Support
2010-02-08T17:04:41Z
VisualCron Tray Client auto starts through the startup folder (registry). You don't need to alter this at all. This does not affect execution.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
StuartS
2010-02-08T17:20:50Z
Hi Henrik

Ok, I'll take the VCTray kill and restart out of the batch file. Now it's dark here, I can start experimenting with the reboot sequence again!

Regards

Stuart
Scroll to Top