Current location: Hot Scripts Forums » Programming Languages » Perl » How to do it....


How to do it....

Reply
  #1 (permalink)  
Old 08-19-03, 10:00 AM
mrbandit mrbandit is offline
New Member
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
How to do it....

This is of course my first post here. This looks like a great place to hang out while coding, so I hope someone can help me. I'm currently custominzing a CGI web interface for a Remote Control utility here at work. The last thing I need to do is pull in the computername of the machine running the web interface session. I've been unable to find a javascript that can do it, so I was wondering if I could kick off a perl script locally on the computers hard drive and read in a file that already houses the name. Anyhelp would be greatly appreciated.

The interface is running on an AIX 4.3.3 box.
Reply With Quote
  #2 (permalink)  
Old 08-20-03, 09:50 AM
Shane Shane is offline
Coding Addict
 
Join Date: Jun 2003
Location: Maryland, US
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to do it....

Quote:
Originally posted by mrbandit
This is of course my first post here. This looks like a great place to hang out while coding, so I hope someone can help me. I'm currently custominzing a CGI web interface for a Remote Control utility here at work. The last thing I need to do is pull in the computername of the machine running the web interface session. I've been unable to find a javascript that can do it, so I was wondering if I could kick off a perl script locally on the computers hard drive and read in a file that already houses the name. Anyhelp would be greatly appreciated.

The interface is running on an AIX 4.3.3 box.
Are you trying to figure out the name of the server that is holding/storing this panel or the computer name of the person browsing/navigating to it?

If you are trying to get the browsing user's computer name, then no, you can't run a perl script physically on their computer without them downloading/authorizing the script first.
__________________
Shane Bauer
Microsoft Certified Professional (MCP) - ASP.NET
ASP/ASP.net, C#, VB/VB.NET, PHP, Perl, SQL
Reply With Quote
  #3 (permalink)  
Old 08-20-03, 11:58 AM
mrbandit mrbandit is offline
New Member
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
That's kind of what I thought

Well, then is there way for me to do the following:

If c:\...\rc.exe is exists
create link pointing at rc.exe
else
create link pointing to a default link
endif

Thanks in advance!
Reply With Quote
  #4 (permalink)  
Old 08-20-03, 12:45 PM
Shane Shane is offline
Coding Addict
 
Join Date: Jun 2003
Location: Maryland, US
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally posted by mrbandit
That's kind of what I thought

Well, then is there way for me to do the following:

If c:\...\rc.exe is exists
create link pointing at rc.exe
else
create link pointing to a default link
endif

Thanks in advance!
No, you can't gain access to a user's computer with server-side languages. You will need to create a signed java applet or activex component to do this VIA a web browser.
__________________
Shane Bauer
Microsoft Certified Professional (MCP) - ASP.NET
ASP/ASP.net, C#, VB/VB.NET, PHP, Perl, SQL
Reply With Quote
  #5 (permalink)  
Old 10-04-03, 11:00 PM
rob2132 rob2132 is offline
Newbie Coder
 
Join Date: Sep 2003
Location: USA
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by mrbandit
This is of course my first post here. This looks like a great place to hang out while coding, so I hope someone can help me. I'm currently custominzing a CGI web interface for a Remote Control utility here at work. The last thing I need to do is pull in the computername of the machine running the web interface session. I've been unable to find a javascript that can do it, so I was wondering if I could kick off a perl script locally on the computers hard drive and read in a file that already houses the name. Anyhelp would be greatly appreciated.

The interface is running on an AIX 4.3.3 box.
You can only obtain this if their end offers that $env field.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 04:02 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.