Kelvin,

NFS is a Network File Share and is kind of like mapping a drive in Windows.
However, if you are on a Windows box you will not want to use and NFS share
unless you want to spend a couple of hundred dollars on an NFS client for
Window.  Most Unix systems have NFS build in.  Since you are on a Windows
machine you might look into a Samba share which allows Unix Samba Shares to
be browsable on a Windows network.  You can find out more at
http://www.samba.org/ and since it is open source you can download a port of
it for AIX at http://www.bullfreeware.com/ for free.

The two other choices are to add an FTP process to your CGI script to get
the file every time it runs or to have a second script that FTP's the file
every 15 minutes after each time it's updated on the AIX box.  Then you
would be able to access the file locally whenever you needed.

I don't know a whole lot about sockets and such but I do not think this
falls under their scope.  That is more for opening a line of communication.
I suppose you could write a perl daemon for your AIX machine that the CGI
script could connect to and the daemon would feed it information from the
file but that seams like a much more work than it is worth with quicker
solutions out there. Although once written it might be the most efficient.

Matt Schneider 
Programmer/System Administrator 
SKLD Information Services, LLC 



-----Original Message-----
From: Poon, Kelvin (Infomart) [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 1:57 PM
To: '[EMAIL PROTECTED]'
Subject: FW: [Perl-unix-users] Perl and UNix



thanks for your help.

BUt what is NFs?..could you give me a link so I can read more about it?

and ..no my script is going to be on my PC.  And if I am understand what you
mean, u are saying I can ftp the file and put it on the location wehre I can
easily open wiht perl.  THe thing is I have to access that particular file
on the AIX machine because that file is constantly updating.  I have a perl
script on the machine that runs every 15 mins that updates that text file.
and my CGI program needs to read from taht text file and outputs some
information.  So u can say taht my program is kinda like a updating program.

So my script needs to be on my PC and somehow accessthe AIX machine and
opens that file.  I don';t know fi I can do that.
nor do I know where to start.  Can perl do this> is this a socket
client/.server communcation type of thing?

Kelvin

-----Original Message-----
From: Matt Schneider [mailto:[EMAIL PROTECTED]]
Sent: January 20, 2003 3:46 PM
To: 'Poon, Kelvin (Infomart)';
'[EMAIL PROTECTED]'
Subject: RE: [Perl-unix-users] Perl and UNix


Kelvin,

I am presuming that your CGI script is running on another AIX or Linux
machine?  You could set up an NFS export and mount of the path containing
the file you want to access.  Otherwise you might need to ftp a copy of it
or something along those lines but that creates a lot of time overhead.

Matt Schneider 
Programmer/System Administrator 
SKLD Information Services, LLC 



-----Original Message-----
From: Poon, Kelvin (Infomart) [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 1:35 PM
To: '[EMAIL PROTECTED]'
Subject: [Perl-unix-users] Perl and UNix


Hi all

I got a question and any help would be appreicated.

Ok, I need a perl script that opens/access a file on a Unix system
(RS6000/AIX to be specific).  Well, you would think this is a beginner
problem, and yes it would be if I told you ur perl script is on the unix
system itself.  BUt the problem is my perl script has to be outside of that
system.  So which means, my perl script is going  to be placed on my PC and
I need that perl script to access the Unix machine and then gets the files
out from it.  

It is a text file I need to get and it is used in my CGI program.

Please advise, I hope I didn;t confuse anyone.

THnkas a lot

Kelvin
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to