CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
writing

 



pinbrook
Deleted

May 2, 2001, 6:39 AM

Post #1 of 4 (589 views)
writing Can't Post

I am trying to configure a mailing list, but my list isn't being written to.

I've checked permissions etc everything has write permissions, but the thing I'm not sure about is the empty file i place to be written to.

its a basic txt file, thus should it be uploaded in ascii or binary,

I created an empty notepad file but I still can't write to it



wickedxter
User

May 2, 2001, 1:35 PM

Post #2 of 4 (583 views)
Re: writing [In reply to] Can't Post

make sure that when your writeing to the file that it's

open(FILE,">>/path/to/file");
print FILE "test";
close(FILE);

if thats not the probelm post the part of the script thats not working.



pinbrook
Deleted

May 7, 2001, 4:39 AM

Post #3 of 4 (563 views)
Re: writing [In reply to] Can't Post

Thanks for the help, I've attached the file, top shows the variables set, then after the ++ the writing bit ofthe script



Jasmine
Administrator / Moderator

May 7, 2001, 10:02 AM

Post #4 of 4 (560 views)
Re: writing [In reply to] Can't Post

My suggestion is to confirm the path to the list.

$emailpath = '/web/easylist/easylist.log';

If you have telnet access on a *nix server, simply go to the directory that the easylist.log is in and type

pwd

That'll give you the full, correct path to the file.

Also, always check the response from open calls:

open (FILE, "$emailpath") or die "Can't open $emailpath $!\n";

If there's a problem opening the file, it'll let you know instead of letting you just think that it worked.


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives