Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

automating tasks?

Posted on 2003-12-06
13
Medium Priority
?
272 Views
Last Modified: 2010-04-06
hi there, is there a way which I can make an HTML file on a site works on its own?
0
Comment
Question by:msaa
10 Comments
 
LVL 15

Expert Comment

by:Timbo87
ID: 9891137
What do you mean by "works on its own"? You can use a scripting language like PHP or ASP to streamline updating tasks. I run a PHP news script for the latest new regarding my site and it makes updating a lot more convenient. I also made some BAT files that I just double-click and they automatically upload the whole site. If you need help with either, don't hesitate to ask.
0
 

Author Comment

by:msaa
ID: 9891142
I mean I have an html file containing Javascript which downloads or does anything from another websites.. I want to make this file work on its own.. without me needing to open it in my browser.. i want it to work from the server..
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9891869
You don't want an HTML page for this.  You need an application or script on the server.  You'd need to provide details about the server you're using and what you need the application/script to do.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:msaa
ID: 9891877
ok, its a unix based server.. and I need it to refresh an image for example from a site..
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9891893
I'm a bit confused by two of your statements that seem to contradict each other.

>> I want to make this file work on its own.. without me needing to open it in my browser

and

>> I need it to refresh an image for example from a site

Do you mean:

a) You want a page, that is being displayed in a browser, to be automatically refreshed

or

b) The server should occasionally update an image that it is storing (eg. by fetching a new image from another site)?

The server may be Unix, but what is the web/application server (Apache? Tomcat? etc.)?
0
 

Author Comment

by:msaa
ID: 9891901
no need for viewing.. but need to request the image only... yes
 b is correct

b) The server should occasionally update an image that it is storing (eg. by fetching a new image from another site)?

the server is Apache.. :)
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9891922
Hmm.  In that case, you probably want to create a PHP script or something to do this for you.  Unfortunately (in this case), I'm a Java specialist, so I'm not sure I can help you much more.  Hopefully though, this has helped to clarify your requirements so Timbo87 might be able to make some good suggestions ;-)

0
 

Author Comment

by:msaa
ID: 9892037
if I open a webpage, which for example has a javascript and has content that refreshes periodically... I want the same thing to happen from my server and continously without needing me to open the site and the HTM page.. I guess this is only possible on Windows servers maybe?
0
 
LVL 15

Accepted Solution

by:
jimmack earned 200 total points
ID: 9892203
The platform (Windows or Unix) shouldn't make any difference.  In the case of JavaScript, the client is doing the refreshing.  Your requirement is that you do something similar on the server.

As I said, I mainly deal with Java, so if I was doing this, I'd probably have a servlet (or separate Java thread) running continuously to do the occasional refreshes.  Because Apache isn't a servlet container, you can't do this with a servlet.  That's why you need more input from Timbo87 or another expert that can explain how to do what you want with PHP or Perl or some other language that is (or is easily) integrated with Apache.

I'm sure that what you want to do is probably quite easy to someone who uses those languages ;-)
0
 
LVL 18

Expert Comment

by:SquareHead
ID: 9906103
This is totally not my bag, but it sounds like you need to execute a script, job, or batch via a cron job -- sort of like Windows' Scheduled Tasks...

I've done this on Windows servers: scheduled a VBS script to run that performs the same steps as a web page. I'm sure the Unix world has similar functionality using cron, cgi, perl, and/or PHP...
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question