New Boundary Support Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Run Command every weekExpand / Collapse
Author
Message
Posted 4/24/2008 6:40:23 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/28/2008 4:30:12 AM
Posts: 4, Visits: 25
Hi,

Need some suggestions to automate a command run using Prism.

Every week i have to build a update package to install on several machines, this package add some files and deletes one log file.

Now i want to have a command executed automatically on the machines where the log file doesn't exist, because this is the indication that the command needs to be run on the PC and this creates a new log file.

I have the command task in place (assigned as reinstall) and it works but only one time and not every time the machine gets the updated package.

What i'm doing wrong or e need to assign this using a Prism Script file?

___
Rui Paz


Post #1669
Posted 4/24/2008 1:08:35 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Yesterday @ 10:05:18 AM
Posts: 655, Visits: 811
Your best bet is going to be creating a Configuration Group based on the existence of the log file, and then assign the command task to that group and have it assigned as a repeating task. Your repeating options are intervals (hourly, daily, weekly, or monthly) or events (a user logs on or the system starts up). The repeating schedule will only be valid for machines that are currently members of that group.

So, for example, you build the group and assign the task to run daily. When a computer does not have the log file, it will join that group and get the assignment. Because the task has never been run before, it will run the task. The task lays down the log file so the computer ends up leaving that group. This means that the task is no longer assigned, so it will not run again the next day. If, at some point, the computer rejoins the group because the log file is missing, the task will run again because it has been more than a day since it last ran.



New Boundary Technologies Support
support@newboundary.com

Post #1670
Posted 4/25/2008 9:03:06 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/28/2008 4:30:12 AM
Posts: 4, Visits: 25
Neo (4/24/2008)
Hi,

I have the command task in place (assigned as reinstall) and it works but only one time and not every time the machine gets the updated package.

What i'm doing wrong or e need to assign this using a Prism Script file?

I forget to mention, already have Configuration Group that checks if the log file doesn't exist and have the run task assigned to this group.

Post #1671
Posted 4/25/2008 9:14:34 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/28/2008 4:30:12 AM
Posts: 4, Visits: 25
New Boundary Support (4/24/2008)
Your best bet is going to be creating a Configuration Group based on the existence of the log file, and then assign the command task to that group and have it assigned as a repeating task. Your repeating options are intervals (hourly, daily, weekly, or monthly) or events (a user logs on or the system starts up). The repeating schedule will only be valid for machines that are currently members of that group.

So, for example, you build the group and assign the task to run daily. When a computer does not have the log file, it will join that group and get the assignment. Because the task has never been run before, it will run the task. The task lays down the log file so the computer ends up leaving that group. This means that the task is no longer assigned, so it will not run again the next day. If, at some point, the computer rejoins the group because the log file is missing, the task will run again because it has been more than a day since it last ran.

I did check the scheduling options to repeat the task but didn't understand witch option will work for my case.

If i understand your explanation correctly assigning a daily repeat schedule to the Configuration Group it will do the trick.

Tanks for your help.

Post #1672
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: New Boundary Support

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 10:22pm

Powered By InstantForum.NET v4.1.3 © 2008
Execution: 0.203. 12 queries. Compression Enabled.