Re: call a webpage
From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 01/30/04
- Next message: dn_perl_at_hotmail.com: "what value does wget return"
- Previous message: Chris F.A. Johnson: "Re: call a webpage"
- In reply to: dave: "call a webpage"
- Next in thread: xiii: "Re: call a webpage"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jan 2004 22:58:34 GMT
On 30 Jan 2004 13:19:09 -0800, dave <kumar1513@hotmail.com> wrote:
>
>
> I need to write a korn shell script which should invoke a webpage. I
> have no idea on the kshell. Can anybody supply me with a piece of code
> that will invoke the webpage i needed.
>
> Thanks in advance
You want to just enter a simple string and have your browser connect to
a particular page on a website?
The simplest form of shell script is all you need, which is just the
command you would type at a prompt in a file made executable with
$ chmod +rx
----------------------
#!/bin/ksh
# not really needed here but a good habit
mozilla http://www.whatever.com/page.html
------------------------ (don't include dashed lines)
That's it.
Name the file/command whatever you want, like "gwp" for get_web_page and
put it in a directory in your PATH (as root), which you can find by doing:
$ echo $PATH
But first, check and make sure that the string "gwp" isn't already used for some
other script or function or alias with:
$ type gwp
Now you just enter "gwp", and assuming that you are connected to the Internet,
it will open in a giff.
AC
- Next message: dn_perl_at_hotmail.com: "what value does wget return"
- Previous message: Chris F.A. Johnson: "Re: call a webpage"
- In reply to: dave: "call a webpage"
- Next in thread: xiii: "Re: call a webpage"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|