[rt-users] Opening a file
Matthew Frick
mfrick at learnedsolutions.com
Thu Aug 2 00:00:02 EDT 2001
I appologise for this not being a 100% rt problem and more a prob I am
having in modifying rt. I will make document this minor change to rt and
pass on the relevant code if wanted but atm I am stuck on what should be a
simple enuff problem to solve.
This is probably not an rt specific problem but a problem I am getting in
trying to modify one of the perl files involved in rt.
the modifications I am making involves opening a plain text file for reading
which is fine but then opening it for writing later in the script which is
failing.
file being modified is /usr/local/rt/lib/rt/database/manipulate.pm
it is opening text file for reading (successfully)
/usr/local/textfiles/XXX.txt
but can not open the same file for writing.
XXX.txt has been set to chmod 775 and even tried at 777 to no avail
commands being used are
open FILE, $textfile or die "Cannot open $stuff for read: $!"; #this is
successfull
close (FILE);
and ....
open FILE, >>$textfile or die "Cannot open $tutorfile for write : $!";
#this is unsuccessfull
close (FILE);
I have tried with ownership rt:rt, root:root and even nobody on the text
file any suggestions from the guru's out there
btw. this is on linux 7.1
thanks
Matthew Frick
More information about the rt-users
mailing list