LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-07-2006, 03:47 AM   #1
kinetik
Member
 
Registered: Dec 2005
Location: The most beautiful city in the world.
Distribution: Mostly RedHat. Also Suse, Ubuntu, PHLAK etc.
Posts: 149

Rep: Reputation: 15
Automated scripting for FireFox?


I tested out Lynx and tested out the cmd_script thing where you can have it perform things automatically like download the html coding and stuff. Pretty impressive.

I want to use something similar to download html coding from one URL for monitoring purposes, there's just one snag though - the URL can only be accessed with a browser that's Javascript enabled -

At first I seeked high and low for a command-line browser with Javascript capability, but I've now pretty much given up on the idea.


What I'm interested in is if it's possible to do a cmd_script thing with Firefox or maybe Konquerer. That way I can have it run via crontab say every 5 min., download the coding I need to a file, then do a seperate script to check the contents of the file.


Does anybody know if something like this will be possible with FF or Konquerer?


Thanks buddies.
 
Old 07-07-2006, 04:11 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Let me guess, you need just download and read the javascript page and understand how to find where it redirects. Seen lots of such stuff. wget and your brain (for one-time job) is sufficient.
 
Old 07-07-2006, 04:21 AM   #3
kinetik
Member
 
Registered: Dec 2005
Location: The most beautiful city in the world.
Distribution: Mostly RedHat. Also Suse, Ubuntu, PHLAK etc.
Posts: 149

Original Poster
Rep: Reputation: 15
Actually no.

I'm using Sitescope to check a few Servers and Websites for availability. Part of the process is to log onto a URL and check the amount of sessions on a server (the Javascript page). This is a daily thing and I'd really like to automate the whole process, hence the need for an automated virtual user. I can't use wget since I first have to log into the relevant URL. From there, everything in the URL itself is encoded and can't be re-used (I think).

See my idea is to have a browser do what I would've done, only automatically. That way I can just save the relevant info into a text file, deploy a script to check the relevant values in the textfile, and have Sitescope generate an Alert whenever the values are below or above a certain threshold.
 
Old 08-02-2006, 04:50 AM   #4
kinetik
Member
 
Registered: Dec 2005
Location: The most beautiful city in the world.
Distribution: Mostly RedHat. Also Suse, Ubuntu, PHLAK etc.
Posts: 149

Original Poster
Rep: Reputation: 15
Anyone have an idea yet if something like this is possible?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
teaching shell scripting: cool scripting examples? fax8 Linux - General 1 04-20-2006 05:29 AM
Automated firefox browing in a shellscript. dr_zayus69 Programming 2 02-26-2006 11:09 PM
Shell scripting problem for importing Firefox files montylee Programming 6 06-03-2005 02:52 AM
command line options for firefox for shell scripting. dr_zayus69 Programming 1 05-25-2005 12:36 PM
IRC scripting and integration with Firefox jrdioko Linux - Software 0 02-16-2005 12:03 AM


All times are GMT -5. The time now is 02:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration