Execute a URL from command window


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Execute a URL from command window
# 1  
Old 08-11-2006
Question Execute a URL from command window

Hi all,

I need to execute a complete URL from command window or shell script. Please any one can help me to.

I tried something like
# http://www.mysite.com/mypage.php > output.txt
but showed some error "http://www.mysite.com/mypage.php not found".

My linux system is internet conneted and when I tried browsing http://www.mysite.com/mypage.php from my mozilla browser, it shows the page.

I assume there should be some format to execute a complete URL from command window or shell script.


Please advice.

Thank you...

Nissar.P.K Smilie
# 2  
Old 08-11-2006
Try to use wget.
# 3  
Old 08-11-2006
Will check. Thanks for the reply...

Nissar
# 4  
Old 08-11-2006
Check also curl
# 5  
Old 03-12-2009
could you tell how your problem was resolved.....or please email me appreciate your help...thanx..

Last edited by vbe; 03-12-2009 at 06:02 AM.. Reason: rm email
# 6  
Old 03-27-2009
u can use lke that


wget $DUMP_GZIP_URL -O dump


and pass the variable from command prompt
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute ssh command with additional terminal command to any remote user not working script

Hello i am having an issue with bash script and this is the code now=$(cat hosts1.txt | awk '{print $2;}') while read n ;do ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers' When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies

2. Shell Programming and Scripting

Using CURL command with special characters in URL

Hi. I 'm trying to hit a REST api and retrieve a JSON feed, and the URL has special characters in it. Something like: Example Domain The below curl command is failing curl -X GET https://www.example.com/?sample=name&id=1001 saying bad command at id=1001 I am going to use this as part... (3 Replies)
Discussion started by: kumarjt
3 Replies

3. Shell Programming and Scripting

Reading URL using Mechanize and dump all the contents of the URL to a file

Hello, Am very new to perl , please help me here !! I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file. below is the script which i have written so far , #!/usr/bin/perl use LWP::UserAgent; use... (2 Replies)
Discussion started by: scott_cog
2 Replies

4. UNIX for Dummies Questions & Answers

Awk: print all URL addresses between iframe tags without repeating an already printed URL

Here is what I have so far: find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}' Here is an example content of a PHP or HTM(HTML) file: <iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Discussion started by: striker4o
18 Replies

5. Web Development

Regex to rewrite URL to another URL based on HTTP_HOST?

I am trying to find a way to test some code, but I need to rewrite a specific URL only from a specific HTTP_HOST The call goes out to http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena The ID in the middle is always random due to the cookie. I... (5 Replies)
Discussion started by: EXT3FSCK
5 Replies

6. Shell Programming and Scripting

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

7. UNIX for Advanced & Expert Users

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

8. UNIX for Advanced & Expert Users

Unix Command To Post An URL

Can I post a URL from the unix prompt? If so, what is the command. :) Thanks. (2 Replies)
Discussion started by: Say
2 Replies

9. Programming

getting url from mozilla window

how to get url from mozilla(when mozilla is running, we ve to get the current url which we are opened). is there anyway to this. thank u in advance sree (2 Replies)
Discussion started by: phani_sree
2 Replies

10. Shell Programming and Scripting

Need to execute a complete url from crontab

Hi, I need to execute a URL through crontab. Please could you help me to. I need something like 15 0 * * * http://www.mysite.com/index.php. Is it possible. If not, how can I execute a script from another server.. Any help will be appritiatable. Many thanks, Nissar.P.K (2 Replies)
Discussion started by: nissar
2 Replies
Login or Register to Ask a Question