Perl Monk, Perl Meditation | |
PerlMonks |
Linux, perl, windows conundrumby Kickstart (Pilgrim) |
on Jun 26, 2002 at 20:47 UTC ( [id://177524]=perlquestion: print w/replies, xml ) | Need Help?? |
Kickstart has asked for the wisdom of the Perl Monks concerning the following question:
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
Back to
Seekers of Perl Wisdom
|
|