MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: realperl



Okay,
	I've been struggling with something now for a few days... and it seems
that the [realperl] tag can take care of it... or maybe not?!  What I am
attempting to do is:

	$recnum = $_[0];
	open(FILE, "/home/username/data/$recnum") || die "Cannot open $recnum:
$!";
	while(<FILE>)	{
		chop;
		do neat stuff here...
	}
	close(FILE);

	Simple in perl land right?!  But every time I go to use this, it
doesn't work at all... it give me an error saying that it cannot open
the file. I **know** that the $recnum var, is expanding out (i tested
this in a die statement).  Minivend is running under a different user
than what the files are own as.  I have even moded the files to 777 for
the time being to see whats going on...  The directory is accessable
from everyones point.  As a little test, I also logged in as mvend, and
wrote a test harness - which worked!? So, the question is, whats
Minivend doing behind the scenes to not allow me to open files?  Any
ideas?

	thanks,

	jason.

ps> once this ones done, I'm gonna have another questions about cyber
cash... be prepared! :-)


-- 

Jason Korkin - jkorkin@korksoft.com
KORKSOFT

+1 (603) 472-8262
http://www.korksoft.com
Design, Hosting, Custom Programming, Database Mgt., E-Commerce


Search for: Match: Format: Sort by: