logtext and logfile
Nancy Palmquist
nlp at vss3.com
Mon Mar 3 10:31:38 PST 2008
Robert Pulliam wrote:
> Using dos in configuration editor logfile value smith
> pflogappend value on
>
> Same in unix
>
> Processing
> qw = @rn{","{1
> logtext = qm the same in both
>
> It works in dos but not in unix
>
> in unix the same processing gives me a popup error in the fileprogram
> "open of logfilefailed, error 13"
>
> Question 1. What is wrong
> 2. Where would the file be placed in unix if it were opened?
>
> thanks Robert Pulliam MD
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
Dr,
Look at permissions. You need to be careful where you write stuff.
Suggestion:
/appl/filepro/filename/logs
So logfile would be:
file=getenv("PFDATA"){getenv("PFDIR"){"/filepro/"{@fi{"/logs"{@rn{","{1
Same exact string works for WINDOWS, just do this
file=xlate(file,"/",chr("92")) to flip the slashes.
Hope that helps. I like to keep the logs under the file you are logging.
FilePro already has permission to write in that folder, just make sure logs has
same permission.
Better than writing things all over the place.
Remember @fi is the current filename, so you can write the logic more generic.
Nancy
--
Nancy Palmquist MOS & filePro Training Available
Virtual Software Systems Web Based Training and Consulting
PHONE: (412) 835-9417 Web site: http://www.vss3.com
More information about the Filepro-list
mailing list