SPDev – RunJob

** More detailed documentation to come.  But here is an overview.
 
* Most jobs will run in less than 60 seconds, and often time in less than 30 seconds.
 
SPDev.exe Syntax Help:
 
Usage:
  SPDev.exe -o RunJob -jobname "<job name>" -url <url> -timeout 7
 
Operation:
-o RunJob
     Configures the schedule for a timer job to run almost immediately, and
     then restores original schedule.
 
Parameters:
     -jobname "job name"
       Name of the timer job run immediately.  Important: This must be the
       internal Job Name, not the Job Title, which is what is displayed in the
       Central Administration Timer Jobs list.
 
     -url <url>
       Specifies the url of the SharePoint web application on the local machine
       for the timer job to be executed.
 
     [-timeout] <minutes>
       Number of minutes for the SPDev command to wait for the job to execute
       before giving up and restoring the original configuration. The default
       value is 5 minutes.
 
Examples:

SPDev.exe -o RunJob -jobname "My Custom Job" -url http://localhost
 
 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s