fire an URL using shell script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting fire an URL using shell script
# 1  
Old 06-26-2012
fire an URL using shell script

Hi,

Can anyone tell me how to fire an URL using a shell script?
Smilie
# 2  
Old 06-26-2012
Bug user wget

Code:
wget 'url'

Source code should be saved in a file.
# 3  
Old 06-26-2012
Also when i am using wget command it is showing this error.

wget Google
--2012-06-26 03:47:52-- Google
Resolving www.google.co.in... 173.194.75.94, 2607:f8b0:4002:802::1017
Connecting to www.google.co.in|173.194.75.94|:80... failed: Connection refused.
Connecting to www.google.co.in|2607:f8b0:4002:802::1017|:80... failed: Network is unreachable.

Any idea why this coming.
# 4  
Old 06-26-2012
try www.google.com

Code:
wget 'www.google.com'
--04:45:42--  http://www.google.com/
Resolving www.google.com... 74.125.227.116, 74.125.227.115, 74.125.227.112, ...
Connecting to www.google.com|74.125.227.116|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html.1'

    [ <=>                                                                                                                 ] 14,436      --.-K/s   in 0.02s

04:45:43 (741 KB/s) - `index.html.1' saved [14436]

# 5  
Old 06-26-2012
Code:
$ wget 'www.google.com'
--2012-06-26 04:55:48--  Google
Resolving www.google.com... 173.194.75.99, 173.194.75.103, 173.194.75.104, ...
Connecting to www.google.com|173.194.75.99|:80... failed: Connection refused.
Connecting to www.google.com|173.194.75.103|:80... failed: Connection refused.
Connecting to www.google.com|173.194.75.104|:80... failed: Connection refused.
Connecting to www.google.com|173.194.75.105|:80... failed: Connection refused.
Connecting to www.google.com|173.194.75.106|:80... failed: Connection refused.
Connecting to www.google.com|173.194.75.147|:80... failed: Connection refused.
Connecting to www.google.com|2607:f8b0:4002:802::1013|:80... failed: Network is unreachable.

---------- Post updated at 02:30 PM ---------- Previous update was at 02:29 PM ----------

same error.

Last edited by radoulov; 06-26-2012 at 06:48 AM..
# 6  
Old 06-26-2012
Hi,

You might have problem with the proxy. try with this and check if it can execute wget.

Code:
export http_proxy='proxy_server_ip:8080'

export http_proxy='http://myproxy.cmp.com:8080/'

# 7  
Old 06-26-2012
any other command to fire url through shell script.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to Parse the XML data along with the URL in Shell Script?

Hi, Can anybody help to solve this. I want to parse some xmldata along with the URL in the Shell. I'm calling the URL via the curl command Given below is my shell script file export... (7 Replies)
Discussion started by: Megala
7 Replies

2. Shell Programming and Scripting

Shell script for cron url

Hi guys, I have a serious issue with running cron command. My host not supported format below mentioned, just the URL.) http://www.mysite/example.php ( I’m affraid a bit, the host do not going to support the sh as well…anyway) Somehow I need to „wrap” this command, to able to call cron: ... (1 Reply)
Discussion started by: vazzeg
1 Replies

3. Shell Programming and Scripting

How to find invalid URL in a text file using shell script?

How to find and remove invalid URLs in a text file using shell script? (1 Reply)
Discussion started by: vel4ever
1 Replies

4. Shell Programming and Scripting

Refresh a URL from shell script

I have a php page which i run in a browser, it has a the refresh meta tag which refreshes the page after every 15 mins. Now i am running this on a browser. It will refresh and do something and update the database every 15 mins. So now is there any way i can simulate this using a simple shell... (2 Replies)
Discussion started by: tonan
2 Replies

5. Shell Programming and Scripting

Help with shell script for url processing

Hi, My objective is to make a shell script that, when run, you can input multiple links at once. text is then inserted between the http:// part and the following url. example : http://google.be ==> http://sometext.google.be it would be great if it could then open all the created links (wich... (5 Replies)
Discussion started by: tooster
5 Replies

6. Shell Programming and Scripting

Shell Script to hit a url

Hi all, I have a php file that grabs xml, parses it and updates my db accordingly. I want to automate the execution of this process, rather than having to hit the url manually. I have been looking into using cron to execute a script to do this, however i'm not exactly sure what command i would... (1 Reply)
Discussion started by: restivz77
1 Replies

7. Shell Programming and Scripting

URL call from SHELL script

My system does not have wget, curl and lynx. The chances are low that the SA would install them for me. Do I have any other way out? I need to invoke a few URL calls from my SHELL script. Thought of using a PERL script or writing a simple Java client, but that adds in more dependencies. Any... (37 Replies)
Discussion started by: chengwei
37 Replies

8. Shell Programming and Scripting

How cgi(shell script) to receive the URL REQUEST from Front end (visual C++)?

I am facing a problem which is weblogic convert to CGI method. The original process is -> the Front End is using Visual C++, and backend is using WEBLOGIC the based programming is JAVA. The method for Weblogic to receive the request from Front end (Visual C++) thru URL. for example :... (0 Replies)
Discussion started by: ryanW
0 Replies

9. 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

10. 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
Login or Register to Ask a Question