Starting SPSS programs automatically

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Starting SPSS programs automatically

drfg2008
SPSS 20

We would like our programs to run automatically from the server. The SPSS programs include Python.

Example 1: Every 60 seconds a particular program shall be started.
Example 2: An SPSS program should be start event-related.

How can this be realized with SPSS?

(something like a batch processing for SPSS)

- I found a few results for "batch script", but they seem to be a bit older -


Frank
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: Starting SPSS programs automatically

David Marso
Administrator
Going Socratic here!
How would you do this with an application other than SPSS?
Please clarify what you mean by Example 1 and Example 2?
Your tendency to abbreviate frequently precludes a solution.
You could create a controlling application with a timer to manifest the 'realization'.


drfg2008 wrote
SPSS 20

We would like our programs to run automatically from the server. The SPSS programs include Python.

Example 1: Every 60 seconds a particular program shall be started.
Example 2: An SPSS program should be start event-related.

How can this be realized with SPSS?

(something like a batch processing for SPSS)

- I found a few results for "batch script", but they seem to be a bit older -


Frank
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: Starting SPSS programs automatically

Jon K Peck
In reply to this post by drfg2008
This function is typically provided by the operating system.  On Windows, look at the AT command.

Schedules commands and programs to run on a computer at a specified time and date. You can use at only when the Schedule service is running. Used without parameters, at lists scheduled commands.

On *nix systems, look at cron.

If you have SPSS C & DS, it can also manage jobs like this.

Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        drfg2008 <[hidden email]>
To:        [hidden email]
Date:        02/23/2012 03:26 AM
Subject:        [SPSSX-L] Starting SPSS programs automatically
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




SPSS 20

We would like our programs to run automatically from the server. The SPSS
programs include Python.

Example 1: Every 60 seconds a particular program shall be started.
Example 2: An SPSS program should be start event-related.

How can this be realized with SPSS?

(something like a batch processing for SPSS)

- I found a few results for "batch script", but they seem to be a bit older
-


Frank

-----
Dr. Frank Gaeth
FU-Berlin

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Starting-SPSS-programs-automatically-tp5507597p5507597.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD


Reply | Threaded
Open this post in threaded view
|

Re: Starting SPSS programs automatically

Edwin Meijdam-2
To make triggers on specific events and on clock ticks you might take a look at Quartz scheduler. I've was familiar with the java version, so I used the .net version in combo with the SPSS .net plugin to schedule and trigger SPSS jobs. (the events where triggered by ASP.net web pages.)


Not the simplest solution I propose, but it is very powerful.

Regards,

Edwin Meijdam




On Thu, Feb 23, 2012 at 2:50 PM, Jon K Peck <[hidden email]> wrote:
This function is typically provided by the operating system.  On Windows, look at the AT command.

Schedules commands and programs to run on a computer at a specified time and date. You can use at only when the Schedule service is running. Used without parameters, at lists scheduled commands.

On *nix systems, look at cron.

If you have SPSS C & DS, it can also manage jobs like this.

Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
new phone: <a href="tel:720-342-5621" value="+17203425621" target="_blank">720-342-5621




From:        drfg2008 <[hidden email]>
To:        [hidden email]
Date:        02/23/2012 03:26 AM
Subject:        [SPSSX-L] Starting SPSS programs automatically
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




SPSS 20

We would like our programs to run automatically from the server. The SPSS
programs include Python.

Example 1: Every 60 seconds a particular program shall be started.
Example 2: An SPSS program should be start event-related.

How can this be realized with SPSS?

(something like a batch processing for SPSS)

- I found a few results for "batch script", but they seem to be a bit older
-


Frank

-----
Dr. Frank Gaeth
FU-Berlin

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Starting-SPSS-programs-automatically-tp5507597p5507597.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD



Reply | Threaded
Open this post in threaded view
|

Re: Starting SPSS programs automatically

drfg2008
In reply to this post by David Marso
Going Socratic here!
How would you do this with an application other than SPSS?


I would never use another program than SPSS ; -)
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: Starting SPSS programs automatically

David Marso
Administrator
Frank,
  I was attempting to prompt a tiny bit of original thinking on your part by positing a hypothetical but you insist upon being hopelessly literal!
You didn't clarify my other two questions!
"Example 1: Every 60 seconds a particular program shall be started."
By 'particular program' are you referring to a bit of SPSS syntax ?
Is this related to the almost 5000 variable GLM lunacy you were tripping on last week?
If so then it *WILL NOT* run in 60 seconds !!
Please spell this out a bit more clearly.
In any case, you will need to create some application with a timer loop or equivalent to
A.  Check if SPSS is running.
  Y:  See if it is busy.
      Y:  Start new instance of SPSS
            a. Submit Syntax, wait
      N:   a. Submit Syntax, wait
  N:  Start SPSS
        a. Submit Syntax, wait
.............. Ad Nauseum...
I don't believe a simple task scheduling scenario applies since it is repeated every 60 seconds and you don't have any instance management etc....
"Example 2: An SPSS program should be start event-related. "
What does the term "start event-related"?  Never heard that one before.
BTW:  You don't really facilitate responses to your questions by being a smart ass.


drfg2008 wrote
Going Socratic here!
How would you do this with an application other than SPSS?


I would never use another program than SPSS ; -)
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"