Re: script to login and run command

From: Mike Brearley (mike_brearleyDONTDOIT_at_NOSPAMhotmail.com)
Date: 08/04/04


Date: Wed, 4 Aug 2004 12:31:05 -0400

Well, I found out the url that launches an update doesn't require a login so
I was just able to use the following, any comments on a better way to do
what I'm doing in the script?

-----------------------
Dim objExp
set objExp = CreateObject("InternetExplorer.Application")

objExp.Navigate
"http://myhostserver/stats/awstats.pl?config=mydomain&update=1"
objExp.Visible = 0

Do Until objExp.Busy = false
   WScript.Sleep 10000
Loop

set objExp = Nothing
-----------------------

-- 
Posted 'as is'.  If there are any spelling and/or grammar mistakes, they
were a direct result of my fingers and brain not being synchronized or my
lack of caffeine.
Mike Brearley
"Mike Brearley" <mike_brearleyDONTDOIT@NOSPAMhotmail.com> wrote in message
news:OLSCaSZeEHA.3792@TK2MSFTNGP09.phx.gbl...
> How can I run a script that will log into a website and launch a specific
> url on that site that executes a command to update stats?
>
> Basically, right now I have to log into the site manually, go to the stats
> page and click update now.  I have the url for the update now link and if
> I'm logged into the site and I put that url in my browser it runs the
> update.  But I'd like to set up a script that will do this for me.
>
> The site uses asp for the login process.
>
> -- 
> Posted 'as is'.  If there are any spelling and/or grammar mistakes, they
> were a direct result of my fingers and brain not being synchronized or my
> lack of caffeine.
>
> Mike Brearley
>
>


Relevant Pages

  • Re: script to login and run command
    ... I found out the url that launches an update doesn't require a login so ... set objExp = CreateObject ... > How can I run a script that will log into a website and launch a specific ...
    (microsoft.public.inetserver.asp.general)
  • Re: Hacker activity?
    ... >login to a server, most as root but some are attempts to login to ... >telnet, all come from the same remote server, and all fail. ... >getting some odd cgi calls to a script on a secure ssl server. ... Make sure root cannot login to your system via ssh. ...
    (freebsd-questions)
  • Re: [opensuse] BASH: has $COLUMNS gone nuts?
    ... You do realize that lines & columns are dynamic values which at least some terminals and login daemons will continuously adjust right? ... What the above shows is that I dragged the corner of my PuTTY window (which was connected to sshd, not every terminal client nor every server daemon does this) making the window a little larger and without issuing any commands, and no possibility that any bashrc or inclusions got executed, the values changed, because the terminal told the daemon and the daemon told it's child processes. ... Try calling them from within a script: ... Although, I would also actually be perverse and say that since the SCO systems predate most others, including ALL linux, that you could actually make the argument that the dwindling remaining production sco boxes in the world are right and the 90 million linux & freebsd & sun boxes are all wrong. ...
    (SuSE)
  • Abusing poor programming techniques in webserver scripts V 1.0
    ... $login = Request.Form ... fool the database parser. ... verified in the script of access to the database, ... The SQL statement will be parsed by the database manager, ...
    (SecProg)
  • Re: Limit desktop & start menu
    ... Create a login script that runs when users log into the TS, and map the R: ... persisitent "R" drive on the server itself and that may cure it. ...
    (microsoft.public.windows.terminal_services)

Quantcast