I have a need for a real cross-OS solution!!

What I have is this script called 'getipuser' that I wrote here. It exists on a linux server, and does a query based on a provided username and the nmblookup script to get the IP address on a machine on the network based on who is logged in there. All it does is return the username, nothing fancy.

Now, to the crux of the problem. This works fine for me on linux. I can even use PHP or Perl to do this lookup and post it on a webpage on our intranet. What I can't do, and what I really would like to do, is have something available for windows users on our network to click on and be asked for a username, and whatever coolness has to happen in the background to run a command on the client system (ie "c:\vnc\vncviewer.exe 10.0.10.123"), where '10.0.10.123' is the IP address obtained by my linux-only script.

Perl doesn't exist on the individual machines, so this is likely not really going to be a Perl problem. However if one of you smart people has a way to improve this situation with Perl involved, you'd make me very happy. It doesn't matter if it's something they click on in a browser, something that I can create a Desktop shortcut to, or whatever...all I ask is that it retrieves a username somehow, and from that grabs the IP address, and from that runs a command on the client based on that IP address.

Thanks for any help in relieving my eternal frustration!!!

Kickstart


In reply to Linux, perl, windows conundrum by Kickstart

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.