help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

May I want Octave to write files as '-rw-rw-rw-'?


From: John W. Eaton
Subject: May I want Octave to write files as '-rw-rw-rw-'?
Date: Sat, 24 Sep 2005 09:31:46 -0400

On 24-Sep-2005, Jun Ohta wrote:

| On cygwin, when I have Octave write a file using 'fopen', 'fprintf, 
| and 'fclose', I usually get the written file as '-rw-r--r--'. 
| Is there any way to setup Octave to write files as '-rw-rw-rw-' or '-
| rwxrwxrwx'?

Try umask (0) before opening the file.

 -- Built-in Function:  umask (MASK)
     Set the permission mask for file creation.  The parameter MASK is
     an integer, interpreted as an octal number.  If successful,
     returns the previous value of the mask (as an integer to be
     interpreted as an octal number); otherwise an error message is

Or, you can set your umask before running Octave.  See the man page
for umask for more details.

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]