Run>app not working

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
pgriffin
Automation Wizard
Posts: 460
Joined: Wed Apr 06, 2005 5:56 pm
Location: US and Europe

Run>app not working

Post by pgriffin » Thu May 19, 2005 12:50 pm

I have a script which runs two applications first thing each morning to allow for macro input during the day. When I log on to the server and run the script, it works perfectly. When I schedule it to run early in the morning before I log on, it fails every time.

Do I need a macro to log on for me, then run the script? Since not being logged on seems to be the only difference between success and failure.

thanks, as always.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu May 19, 2005 2:06 pm

Macro Scheduler scripts are not Services and cannot run unless you are logged in.

You need to use a utility to make your script a Service or use another machine to run a script to call a service that runs the script.

For example, I have an active Win98 system make a pcAnyWhere call to a Win2K system that is logged out. PcAnyWhere runs as a service on the 2K. When pca answers the call, it then logs into the 2K system and then calls a Macro Scheduler script on that machine.

You can download SrvAny utility to make a service for a program.
Last edited by Bob Hansen on Thu May 19, 2005 2:14 pm, edited 1 time in total.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
pgriffin
Automation Wizard
Posts: 460
Joined: Wed Apr 06, 2005 5:56 pm
Location: US and Europe

Post by pgriffin » Thu May 19, 2005 2:12 pm

Thank you for the response. I am also reading a page on mjtnet that explains how to make the script a service, but I'm unsure if that means it will work or not. I suppose I should make the 'service' script one that logs on, then call the other scripts.

thanks.

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Thu May 19, 2005 3:51 pm

You might want to consider investing in the compiler, it's a lot easier dealing with .exe's in this kind of situation.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts