[THIN] Re: One for the script kiddies....

  • From: "Kevin Stewart" <kevin.g.stewart@xxxxxxxxx>
  • To: thin@xxxxxxxxxxxxx
  • Date: Fri, 14 Nov 2008 09:13:14 -0500

try this:

for /f "tokens=1* delims=" %%i in ('getpubapp.exe') do set pubapp=%%i

HTH
Kevin

On Fri, Nov 14, 2008 at 7:52 AM, IT Support <it@xxxxxxxxxxxx> wrote:

>  Thanks Joe & Warren.
>
>
>
> I used getpubapp and reconnact! to get the info I need into my log.
>
>
>
> This a bit off topic but hopefully someone will know this straight away –
>
>
>
> I piped the output of getpubapp to a random temporary file, read it back in
> to a variable to append to my csv, and then deleted the temp file.
>
>
>
> All this is very long winded and adds precious milliseconds to the login
> process...
>
>
>
> Does anyone know of a better way to implement this? i.e – read directly
> from the console output into a variable?
>
>
>
> Thanks in advance!
>
>
>
> N.
>
>
>
>
>
>
>
> * *
>
> * *
>
> *From:* thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] *On
> Behalf Of *Joe Shonk
> *Sent:* 13 November 2008 17:50
> *To:* thin@xxxxxxxxxxxxx
> *Subject:* [THIN] Re: One for the script kiddies....
>
>
>
> Login Consultants has a free utility called ReconnAct! That does exactly
> what you're asking for.  (not sure about the published app, but the client
> IP and the ability to run a script when a user disconnects and/or
> reconnects.)
>
>
>
> Joe
>
>
>
> *From:* thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] *On
> Behalf Of *IT Support
> *Sent:* Thursday, November 13, 2008 9:45 AM
> *To:* 'thin@xxxxxxxxxxxxx'
> *Subject:* [THIN] One for the script kiddies....
>
>
>
> Hi All,
>
>
>
> I'm working on creating a central csv log of all logon / logoff requests to
> our citrix farms.
>
>
>
> So far I have cribbed together a vbs running via logon / logoff scripts to
> collect various data from environmental variables and append to a daily csv
> file.
>
>
>
> It's working OK, but I'd like to extend to include the name of the current
> published application & client ip address, but I can't figure out how to get
> this.
>
>
>
> Also, does anyone know of a way to trigger a script when a session
> disconnects or reconnects?
>
>
>
> T-I-A
>
>
>
>
>
>
>
> BM Polyco Ltd Disclaimer
> This e-mail and the information it contains are confidential. If you have
> received this message in error please notify us immediately. You should not
> use or copy it for any purpose nor disclose its contents to any other party.
> The contents of this communication are advisory and are not binding on the
> Company unless supported by authorised documentation.
> It has also passed through the MailControl Anti-Virus service powered by
> BlackSpider for total peace of mind.
>
>
>
> Click 
> here<https://www.mailcontrol.com/sr/mIq9Qj04FkfTndxI%21oX7Uj5Un8Ja1WtLtZOOSnJRCXRwno9aBs6a3En3hfRYbCRXURwikaZmT9jwq3xXRfv08Q==>to
>  report this email as spam.
>



-- 
Kevin G. Stewart

Other related posts: