Connecting to website


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Connecting to website
# 1  
Old 07-25-2008
Connecting to website

Okay, here's the situation: I have a UNIX box hosting a website. The website is basically there to hold a .swf file; when you go to the URL, the .swf file loads, and it pulls data from a database on another computer into a cache. The cache holds things for 24 hours. This all works fine, so it's really just background.

The real problem is that I want some way to go to the site every 24 hours (or thereabouts) automatically and start the process of pulling data into the cache. Unfortunately, wget doesn't seem to do this (it only downloads the .swf file, or the .html file containing it). Is there some other UNIX command that I can put in a cron job to accomplish this task, or am I going to have to start fiddling with the underlying machinery?
# 2  
Old 07-26-2008
That is because wget simply downloads the .swf but not being able to play it. If the flash movie is not executed, nothing will happen. So, what you need is to play the movie from the command line.

I don't think you can use the Adobe flash player for this. On Linux, there is an open source version of the Flash player with command line-based control of playback. Even though I don't truly think it works well for you, there's no loss giving it a try.

Gnash Project |

Let us know how it goes.
# 3  
Old 07-30-2008
Quote:
Originally Posted by cbkihong
That is because wget simply downloads the .swf but not being able to play it. If the flash movie is not executed, nothing will happen. So, what you need is to play the movie from the command line.

I don't think you can use the Adobe flash player for this. On Linux, there is an open source version of the Flash player with command line-based control of playback. Even though I don't truly think it works well for you, there's no loss giving it a try.

Gnash Project |

Let us know how it goes.
Eheh...uh, actually, I still haven't gotten around to installing it. It requires this big list of other things to be installed first, and they have other things that need to be installed, and it's a big, confusing mess.
# 4  
Old 07-30-2008
EDIT: You saw nothing. It was just swamp gas reflected off a weather balloon. Smilie

Last edited by BSchow; 07-30-2008 at 03:59 PM..
# 5  
Old 07-30-2008
cause you are new to unix.com the post needs to be approved if you post links. you'll get a note about that when you post a new reply!
# 6  
Old 07-30-2008
Ah, okay then. Err...please ignore the doublepost then. (Doublepost? I see no doublepost. Smilie)

At the risk of embarrassing myself again, the message got cut off somehow, sooo: it turns out the box I'm using runs OpenSuSE, and already has Firefox installed. If I were to install the Flash Player for Linux, maybe I could run Firefox from the command line or something? Maybe I should be asking this over on the Mozilla forums...

Last edited by BSchow; 07-30-2008 at 04:12 PM..
# 7  
Old 07-30-2008
Try this in your crontab (replace with your path to firefox if diff of course):
Code:
/usr/bin/firefox <URL>

Also just try it from the terminal. It will open the URL in firefox and should refresh your cache.

Cheers....cassj
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Web Development

Which technology is used on this website?

Hi, Home ~ InfoBeans I want to know technology framework using which we can achieve that kind of look and feel Thanks (6 Replies)
Discussion started by: ezee
6 Replies

2. UNIX for Dummies Questions & Answers

Is this website reliable ?

edit by bakunin: content not relevant for our site (and bordering on spam) SNIPped, thread closed. My suggestion is to - before even considering to buy anything online - put more effort in research, i.e. what the web site you write a comment at, is all about. This one here is definitely not for... (1 Reply)
Discussion started by: ethansk
1 Replies

3. Web Development

Help with ht5boilerplate - website.

need a little help with this below MAVEN DAZZ what i need is ?!! a) To make sure, that logo stays on top (left hand side) -fixed in this navigation bar. on the same navigation bar (MENU) should stay on the other right hand side. Can anyone explain me how will this work. i am new to... (0 Replies)
Discussion started by: dazdseg
0 Replies

4. UNIX for Dummies Questions & Answers

Getting the source of website

Hi MAy i know how i can get html source of a given site in a file using bash script? I want to store the html source of the site in a file so that i can parse that file. Thanks, (1 Reply)
Discussion started by: pandeesh
1 Replies

5. Web Development

my website.please. help me.

hello!! well, i am planning to make my own virtual pet site like that of a neopets. unfortunately i don't have any idea on how to do it.. i've tried searching in the net, but the result is really complicated. i don't know where to begin.i have already drawn some that i think would help... (2 Replies)
Discussion started by: ackiemae
2 Replies

6. UNIX for Dummies Questions & Answers

Website

Hey guys I know you probably get this question a lot but, I want to make a website, and I don't have any experience doing this. I have a iMac and i was wondering if there is someone you could refer me to or a site that will show me how to do it. Thanks. (2 Replies)
Discussion started by: mmecca21
2 Replies

7. Filesystems, Disks and Memory

website

HELLO FELLOW GEEKS. PLZ CHECK OUT MY FRIENDS SITE AT http://isunshine.dhs.org or u can also join the message board at http://isunshine.dhs.org/scripts/ikonboard.cgi wixifer (1 Reply)
Discussion started by: wixifer
1 Replies
Login or Register to Ask a Question