LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-05-2010, 03:35 PM   #1
farooqkadri
LQ Newbie
 
Registered: Sep 2009
Posts: 12

Rep: Reputation: 0
WGET command not working


Hi,

I have a website that I need to go to often and disable a monitor. To disable I need to login to the website-> click on monitor -> then uncheck a box.

I am told that I can do this through a scipt using the WGET command. I got the parameterized query and then tried to execute it through a *.sh script.

The script generates a php file in the location from where it is executed. When I go to the site and check the monitor is not disabled.

Could someone please advise on this. Thanks.
 
Old 01-05-2010, 03:48 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
You can do it with wget or curl in all liklihood, but is it downloading the file from the server or downloading the result of the operation, what does the php file have in it?
 
Old 01-06-2010, 02:40 PM   #3
farooqkadri
LQ Newbie
 
Registered: Sep 2009
Posts: 12

Original Poster
Rep: Reputation: 0
It is creating a file called login.php.I have attached the file as login.txt. Not sure what the file is. When I open the file as html in IE on windows it is opening the login page of the site.

I created the URL below from firebug in firefox where I copied the URL with parameters:

wget --ignore-length http://www.siteuptime.com/users/serv...on&Track503=on
Attached Files
File Type: txt login.txt (11.6 KB, 2 views)
 
  


Reply

Tags
linux, script, wget


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
wget not working! but "man wget is" ??? wrapster Solaris / OpenSolaris 5 07-30-2008 04:00 AM
wget command nawuza Linux - Newbie 3 07-16-2008 11:37 PM
Wget command help divyahm Linux - Software 12 09-04-2007 02:25 PM
Need help with wget command learners Linux - Software 0 09-04-2007 08:28 AM
wget command help munkeevegetable Linux - Newbie 8 11-03-2004 07:37 PM


All times are GMT -5. The time now is 11:46 AM.

Main Menu
Advertisement
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