Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CGI/Perl open remote file for append

Status
Not open for further replies.

PTAMom

Technical User
Sep 2, 2003
3
US
I am using an HTML form to collect info that I want to append to a file stored on the (Windows) Webserver. I process the form with a CGI/Perl script. Not unexpectedly, I get

Cant open cgi-bin\Updates.txt for append: Permission denied at cgi-bin\update.updates.pl line 10.

Makes sense - I don't want any old person updating files on the server. I get username and password from the form, but have no idea how to pass that information to a Windows box to authenticate the process. I don't speak Windows, I
speak UNIX. My webhoster uses Windows - so I'm trying to learn Windows ASAP.

The script works perfectly if I update a local version of the Updates.txt file.

Thanks for any help.

PTAMom
 
you could try ftp'ing the file to the local machine/use samba to get it, modify the file, then ftp/samba it back to the windows box ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top