Re: call a webpage

From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 01/30/04


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



Relevant Pages

  • Re: call a webpage
    ... >> I need to write a korn shell script which should invoke a webpage. ... call a certain web java program every day at a certain time, ...
    (comp.unix.shell)
  • Re: find
    ... If the command is ... shell programming is largely about invoking external ... If it's ok to invoke find from a shell script, ...
    (comp.unix.shell)
  • Re: Using subprocess module to launch a shell shell script that itself forks a process
    ... """Invokes a shell command, ... When running the aforementioned code, it kicks off the shell script, ... the shell script kicks off the Java process. ... you could just invoke java directly from Python. ...
    (comp.lang.python)
  • problem in invoking shell script through a C++ thread
    ... while invoking a unix shell script through C++ ... I am using Pthreads to invoke shell scripts. ...
    (comp.sys.hp.hpux)