permissions issue on print to a file
Nancy Palmquist
nlp at vss3.com
Mon Dec 4 11:36:37 PST 2006
Dennis Malen wrote:
> Nancy,
>
> I assume fm is the name of the file. What is the rest after fm:
>
> fm{" 2>&1"
>
Dennis,
I am working on Unix and that redirects any screen I/O (I believe) to
another place. I am so used to doing it, I forget if it is the screen
IO or error IO and where &1 is.
I just look at the last command line and copy it when I do these and now
I guess the meaning has been lost to me. Maybe one of the Unix script
people would clarify that part of the line.
I write scripts so infrequently, I find that I mimic what I did before
so I do not have to try to remember the entire language and rules.
So I apologize for the vagueness of my answer and hope someone else will
help me out a bit.
Nancy
> Dennis Malen
> 516.479.5912
> ----- Original Message ----- From: "Nancy Palmquist" <nlp at vss3.com>
> To: "Richard D. Williams" <richard at appgrp.net>
> Cc: "filePro Mailing List" <filepro-list at lists.celestial.com>
> Sent: Monday, December 04, 2006 11:52 AM
> Subject: Re: permissions issue on print to a file
>
>
>> Richard,
>>
>> I might take another tack. I have had my security staff insist that
>> export files be created with appropriate permissions and have had not
>> difficulty complying.
>>
>> After you complete the export, write and close the file, then you will
>> have permission to do a system command that will change the owner or
>> mode without issue.
>>
>> While the file is still open, it may not be allowed.
>>
>> Suggested location for this logic might be in the @done logic.
>>
>> Works great. Make any changes you require. In my case, it was to
>> change the mode from the filePro default 0666 to a more secure setting.
>>
>> @done if:
>> then: write file; close file
>> if:
>> then: system "chmod 0600 /home/appl/fpmerge/"{fm{" 2>&1"
>> if:
>> then: end
>>
>> 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
>> _______________________________________________
>> Filepro-list mailing list
>> Filepro-list at lists.celestial.com
>> http://mailman.celestial.com/mailman/listinfo/filepro-list
>>
>>
>>
>
>
--
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