RE: How to edit an FTPed HTML page?

2003-07-11 Thread FARRINGTON, RYAN
Title: RE: How to edit an FTPed HTML page?





Example:


Computer 1 (your computer)
Script.pl
 |--- get file and store it in c:\temp



Computer 2 (their computer)
Script.pl
 |--- get file and store it in c:\temp



I don't see why it would download to your machine unless you have a UNC path somewhere


-Original Message-
From: ashish srivastava [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 11, 2003 9:38 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: How to edit an FTPed HTML page?



Hi
I am able to FTP the file to any local directory on 'MY Machine'. But the 
application should be such that any user can FTP the file to a fixed 
location on HIS m/c (say C:\Temp. I will make sure that all the users have 
this directory on their sys.). Then he should edit it and upload it. At present when other users download the file, it is getting downloaded to 

my dir (say C:\temp).


Ashish



From: FARRINGTON, RYAN [EMAIL PROTECTED]
To: 'ashish srivastava' [EMAIL PROTECTED], 
[EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: RE: How to edit an FTPed HTML page?
Date: Fri, 11 Jul 2003 09:30:14 -0500

Ashish just make sure it saves it to a local drive. Ex: 
c:\temp\perl_ftp\your.html

-Original Message-
From: ashish srivastava [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 11, 2003 9:04 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: How to edit an FTPed HTML page?


Hi
Another doubt. My script is running on a server installed on my 
machine.
Now

when i FTP a file it will be downloaded to a particualr directory. But 
what when other people use this script? I want the file to be 
downloaded to their local machines and not on my machine.
How can i do this?

TIA
Ashish


 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: How to edit an FTPed HTML page?
 Date: Fri, 11 Jul 2003 10:00:52 +0100
 
 
 On 11/07/2003 08:13:32 perl-win32-users-admin wrote:
 
  Hi All
  
  My application needs to edit an HTML page which is located on a 
  remote server(UNIX). I can FTP the particular file to my local 
  directory, but
 can
 i
  open this file in Netscape Composer through a Perl script?
  
 
 Sure, system() should be able to do it:
 
 # assume file was FTPs to $localfilepath
 system( qq(c:/program files/netscape/netscape.exe -edit
 $localfilepath) );
 
 (adjust accordingly for netscape location and the correct switch for
 Composer)
 
 Note: this will block your script until you exit Composer.
 
 --
 Csaba Ráduly, Software Engineer, Sophos Anti-Virus
 Email: [EMAIL PROTECTED], Tel: 01235 559933, Web: 
 www.sophos.com Add live virus info to your website: 
 http://www.sophos.com/link/vfeed
 
 
 
 ___
 Perl-Win32-Users mailing list 
 [EMAIL PROTECTED]
 To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_
Astrology can be fun. Find out for yourself. 
http://www.msn.co.in/Astrology/Astromagic/ With just a click!

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


_
Polyphonic ringtones. Latest movie trailors. 
http://server1.msn.co.in/sp03/gprs/index.asp On your mobile!





RE: How to edit an FTPed HTML page?

2003-07-11 Thread Adam R. Frielink


 
 Hi
 I am able to FTP the file to any local directory on 'MY 
 Machine'. But the 
 application should be such that any user can FTP the file to a fixed 
 location on HIS m/c (say C:\Temp. I will make sure that all 
 the users have 
 this directory on their sys.). Then he should edit it and upload it.
 At present when other users download the file, it is getting 
 downloaded to 
 my dir (say C:\temp).
 
 Ashish

I would recommend using the File::Temp module then.  It will create the
file and remove it on script completion (Or any variation inbetween) and
it doesn't care who is using it, it will find a unique place to store it
and tell you the file name to use.  I have found it very friendly for my
applications needing a similar funcitonality.

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