How to invoke an URL


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to invoke an URL
# 1  
Old 12-07-2010
How to invoke an URL

Hi,

I am trying to invoke an service using URL. I want to know how to call that url with nohup.

Code:
nohup links "__http://Administrator:assword@ServName:8080/invoke/wm.server.admin/shutdown?bounce=no&option=force&timeout=0" &

I am trying to run this command on unix command prompt, But in this case LINKS is not working. It gives an error
"nohup: links: No such file or directory"

Please let me know if there is any alternate command to run the above link.

Thanks.

Last edited by Yogesh Sawant; 12-30-2010 at 09:43 AM.. Reason: added code tags
# 2  
Old 12-07-2010
Invoke is a bit vague, as HTTP will either GET or POST, usually. Fetch or submit, let us say. Google tells me links is a text browser like lynx. Apparently it is not installed or not in your $PATH. Some prefer wget for less attended operation, which can get or post. The quoted URL with leading _'s seems a bit funky.
# 3  
Old 12-07-2010
What Operating System are you running?
What Shell are you using?
What did you type when the command previously worked, and was it on the same computer in the same account?
# 4  
Old 12-08-2010
Quote:
Originally Posted by methyl
What Operating System are you running?
What Shell are you using?
What did you type when the command previously worked, and was it on the same computer in the same account?
Thanks for the reply.
I am using Windows Xp and trying this for first time. I am not aware if this will work or not. I googled and found that this command suits my need.
I am trying this on Solaris box. Purpose of this command is to shutdown a server.

---------- Post updated at 11:27 AM ---------- Previous update was at 11:26 AM ----------

Quote:
Originally Posted by DGPickett
Invoke is a bit vague, as HTTP will either GET or POST, usually. Fetch or submit, let us say. Google tells me links is a text browser like lynx. Apparently it is not installed or not in your $PATH. Some prefer wget for less attended operation, which can get or post. The quoted URL with leading _'s seems a bit funky.
Yes it seems links is not set in $PATH. Can I use lynx instead of links. Or is there any other way to execute this command. Thanks.
# 5  
Old 12-08-2010
The command posted appears to be intended to shut down Microsoft Integration Server software.
How to stop integration server through command prompt - wMUsers

Quote:
I am trying to invoke an service using URL.
What precisely are you trying to achive?
Any reason to not run the appropriate commands on the Windows box?
# 6  
Old 12-30-2010
Quote:
Originally Posted by methyl
The command posted appears to be intended to shut down Microsoft Integration Server software.
How to stop integration server through command prompt - wMUsers


What precisely are you trying to achive?
Any reason to not run the appropriate commands on the Windows box?

Hi,

I am trying to write a shell script to invoke wm.server.admin:shutdown.
This script will be scheduled to run at particular time. This is done for automated restart of IS at particular time.

But LINKS, WGET, LYNX and others are not working. so trying to figure out another way to achive this.

Thanks,
# 7  
Old 12-30-2010
Why can't you just install lynx or wget on your Solaris box? You can download the binaries from Sunfreeware
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

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

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

3. Shell Programming and Scripting

Invoke Procedure Help

Hello unix.com users, I reached a dead end with a procedure. My files: x.pl #!/usr/bin/perl use Net::FTP; my $host = $ARGV; my $user = $ARGV; my $pass = $ARGV || ""; my $port = "21"; $ftp=Net::FTP->new("$host", Port=>"$port", Timeout => 5) or die("couldn't connect to host:" .... (2 Replies)
Discussion started by: galford
2 Replies

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

5. UNIX for Dummies Questions & Answers

How to invoke ESC+K

How to invoke ESC+K to get recent commands in Korn Shell. In some of the unix machine ESC+K is available and in some machines, it does not work. All of the machines that I work have Korn shell. (5 Replies)
Discussion started by: bobbygsk
5 Replies

6. UNIX for Dummies Questions & Answers

ReDirecting a URL to another URL - Linux

Hello, I need to redirect an existing URL, how can i do that? There's a current web address to a GUI that I have to redirect to another webaddress. Does anyone know how to do this? This is on Unix boxes Linux. example: https://m45.testing.address.net/host.php make it so the... (3 Replies)
Discussion started by: SkySmart
3 Replies

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

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

9. UNIX for Dummies Questions & Answers

Invoke URL's from file and comment with # symbol which are not working

Hi All, my intention is read urls from a file (what ever url's it may be) but the url's which are not opening i.e which displays 404 , page not found error and so on should be commented in the file with # symbol. for the correct url's : nothing to be done(except script should validate... (0 Replies)
Discussion started by: gsp
0 Replies

10. Shell Programming and Scripting

invoke same script twice

hey, can I invoke the same script twice simultaneously? I want both instances to run at the same time with different parameters. Thanks! (2 Replies)
Discussion started by: mpang_
2 Replies
Login or Register to Ask a Question