Can you schedule scripts via the command line?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Chaoticz
Newbie
Posts: 15
Joined: Wed Apr 23, 2003 3:47 pm
Location: Atlanta, GA USA

Can you schedule scripts via the command line?

Post by Chaoticz » Thu Apr 24, 2003 9:21 pm

I have been looking through the help files but I havent found anything that would let me schedule a script to run at a certain time via the command line. Is that even possible?

For Example:
mssched whatever.scp /schedule date=04242003 time=1200PM

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Fri Apr 25, 2003 9:39 am

Hi,

You can't set up schedules like this. You need to have Macro Scheduler running all the time if it is to schedule macros and in that case you would set up the schedule in Macro Scheduler.

However, you can run macros via the command line:

msched.exe macroname

or

msched.exe scriptfile.scp

Therefore you can schedule this method using any other scheduler such as AT or the Task Scheduler that comes with Windows:

AT 23:55 /Every:M,T,W,Th,F,Sa,Su "msched.exe mymacro"

That would set up a schedule in AT.
MJT Net Support
[email protected]

Chaoticz
Newbie
Posts: 15
Joined: Wed Apr 23, 2003 3:47 pm
Location: Atlanta, GA USA

Post by Chaoticz » Fri Apr 25, 2003 9:50 pm

Thanks.

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