Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 01-05-2010, 02:35 PM   #1
LQ Newbie
Registered: Sep 2009
Posts: 12

Rep: Reputation: 0
WGET command not working


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, 02:48 PM   #2
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
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, 01:40 PM   #3
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
Attached Files
File Type: txt login.txt (11.6 KB, 6 views)


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 03:00 AM
wget command nawuza Linux - Newbie 3 07-16-2008 10:37 PM
Wget command help divyahm Linux - Software 12 09-04-2007 01:25 PM
Need help with wget command learners Linux - Software 0 09-04-2007 07:28 AM
wget command help munkeevegetable Linux - Newbie 8 11-03-2004 06:37 PM

All times are GMT -5. The time now is 07:47 PM.

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