473,474 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

start script automatically

Tom
Hi,

I have a problem because I don't know how to start my script
automatically after a special event happens.

In detail: I store data from a PLC. Every 30 seconds the data is stored
in a new file. After the file is stored I would like to start my script
that analyzes the data right away. Any help how to do this is deeply
appreciated.

Thank you very much in advance.
Regards, Tom

Jul 18 '05 #1
2 1897
Hello, Tom!
You wrote on Tue, 08 Jul 2003 11:17:37 +0200:

T> Hi,

T> I have a problem because I don't know how to start my script
T> automatically after a special event happens.

T> In detail: I store data from a PLC. Every 30 seconds the data is stored
T> in a new file. After the file is stored I would like to start my script
T> that analyzes the data right away. Any help how to do this is deeply
T> appreciated.

T> Thank you very much in advance.
T> Regards, Tom

Your script have to work like a demon or the 'storer' have to run your
script.

With best regards, Egor Bolonev. E-mail: eb******@rol.ru [ru eo en]

Jul 18 '05 #2
On Tue, 08 Jul 2003 11:17:37 +0200, Tom wrote:
I have a problem because I don't know how to start my script
automatically after a special event happens.


You have two options:

- Have the process causing the event, also cause the script to run.
It's in the best position to know when the script should be run,
after all, since it created the event.

- Have a separate process watching for the event, which can then run
the script reactively. This can either be a scheduled event, if the
frequency is low (every few minutes or longer), or a
continuously-running process (also known as a daemon on Unix).

Which you prefer is dependent on how much you consider the two stages to
be linked together. If they are conceptually part of the same "event",
then the first option is preferable. If the two steps are conceptually
separate, keeping the processes separate may be preferable since you are
not then committed to running them always in sequence.

--
\ "Too many Indians spoil the golden egg." -- Sir Joh |
`\ Bjelke-Petersen |
_o__) |
http://bignose.squidly.org/ 9CFE12B0 791A4267 887F520C B7AC2E51 BD41714B
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: LRW | last post by:
Sorry to crosspost, but I have no idea if this is more a PHP question of general Linux question. I have a script that makes changes to image files, montages them into a jpg, and creates a Web...
5
by: Tim Morrison | last post by:
Is there any easy way to create a change script as illustrated below for all tables within a database? Right now I would have to create a seperate script for each table. I would like to be able...
16
by: sandy | last post by:
Hi, Using Java script I am trying to create code where when you place in the start date it automatically calculates 6 months for the experations date. For example when I place 01/01/04 as the...
3
by: Robert | last post by:
Hello, I have created a windows service that performs some automatic backups. It works, and it is set to start automatically. However, it is not started directly after the installation...
13
by: bmurphy | last post by:
Last week after much searching, I found the answer to my problem in this newsgroup. I can't find the thread from which I got my solution, but I wanted to report back what worked. When the site...
7
by: AmitKu | last post by:
I'm trying to use RegisterStartupScript. I am making a call to it in Page_Load...and nothing shows up. Well that not's entirely true. Half the pages I've put it on do work properly, but the...
8
praclarush
by: praclarush | last post by:
Ok, I'm new to JavaScript and I'm taking a class for it the assignment in it I'm supposed to create edit a pre-made page to display a marquee that automatically scrolls for the user, as well as give...
5
by: nttuanit | last post by:
I have a Web App, I want to start Main page automatically after IIS is started without any request from browser. OR run one Script in Global.asax after IIS started. I understand that the...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.