Output file ownership
Tom
tla at aldridgeinc.com
Thu May 18 08:49:54 PDT 2006
In searching my archives I find discussions about permissions but not
ownership.
Scenario:
From input processing I create the first file below.
system "echo \"<PRE>\" > /appl/fpmerge/html/" {jobname {".html"
Which results in the file being owned by the user (in this case 14):
-rw------- 1 14 stores 13 May 18 10:13 we052806.html
Then I run rreport, which results in the file below that is owned by
filepro.
rptstring="/appl/fp/rreport scheddet -f sched -v schedsel -a -ia -u -r"
<1 <"-rw" <4 <"-rx" <5
rptstring=rptstring <"-h" <"\"" <jobname <"\"" <"-pn nocodes -p
/appl/fpmerge/html/ " {jobname
-rw------- 1 filepro stores 4540 May 18 10:13 we052806
Now I cat the output file to the first file and append a tag:
system "cat /appl/fpmerge/html/ " {jobname <">>" <"/appl/fpmerge/html/"
{jobname {".html"
system "echo \"</PRE>\"" <">> /appl/fpmerge/html/" {jobname {".html"
Finally I ftp the file to different server:
THE PROBLEM is it won't allow the cat of the rreport output file to the
first file because the ouput file is owned by filepro and the other by
the user. What should I do here? Thanks in advance.
Tom Aldridge
More information about the Filepro-list
mailing list