[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Unix file mode
> I am using Stata8 on a Unix machine.
> I wonder if it is possible, when a do-file saves some data, to set the
> file mode, i.e. the permissions whether the file is for instance read
> Is there any trick within Stata or do I have to do this manually
> within my Unix.
> Thanks for all suggestions in advance.
You can make a call to the shell from within the do-file to do whatever you want.
Assuming you are saving a file called test.dta, then after its been saved you can change
permissions to it by....
save test, replace
!chmod 0644 test.dta
* Or change ownership...
* Or if you wanted to save space...
ARC Epidemiology Unit, University of Manchester
"If your result needs a statistician then you should design a better experiment" -
* For searches and help try: