[torqueusers] The issues on using -o option.
zhaohscas at yahoo.com.cn
Tue Nov 8 20:49:55 MST 2011
On 11/09/2011 12:28 AM, David Beer wrote:
> ----- Original Message -----
>> On Tue, Nov 8, 2011 at 10:05 AM, Hongsheng Zhao
>> <zhaohscas at yahoo.com.cn> wrote:
>>> Hi all,
>>> From the following webpage,
>>> I can find the following notes:
>>> -o path
>>> Defines the path to be used for the standard output stream of
>>> batch job. The path argument is of the form:
>>> Accordingly, in my pbs script, I use the following line:
>>> #PBS -o out
>>> Then, in the result folder of my job, I obtained a file named out
>>> the following file permissions:
>>> zhaohongsheng at node32:~/Castep_test> ls -la out
>>> -rw------- 1 zhaohongsheng users 0 2011-12-13 11:32 out
>>> As you can see, the file permission is 600 for this file. Why does
>>> happen? I think it should be 644 for convenience. Any hints on
>>> issue? Thanks in advance.
>> not everybody likes god and the world to read their outputs,
>> so this is a reasonable default.
>> but since you set the name of your output, nothing keeps
>> you from using "chmod 0644 out" in you submit script to
>> change the permissions to what you like them to be.
>>> Hongsheng Zhao<zhaohscas at yahoo.com.cn>
>>> School of Physics and Electrical Information Science,
>>> Ningxia University, Yinchuan 750021, China
>>> torqueusers mailing list
>>> torqueusers at supercluster.org
>> Dr. Axel Kohlmeyer akohlmey at gmail.com
>> Institute for Computational Molecular Science
>> Temple University, Philadelphia PA, USA.
>> torqueusers mailing list
>> torqueusers at supercluster.org
> You can set a different default permissions using $job_output_file_umask, which is documented on this page http://www.adaptivecomputing.com/resources/docs/torque/a.cmomconfig.php
Thanks a lot, I've read the following notes for the above
$job_output_file_umask parameter from the webpage you mentioned above:
Description: uses the specified umask when creating job output and
error files. Values can be specified in base 8, 10, or 16; leading 0
implies octal and leading 0x or 0X hexadecimal. A value of "userdefault"
will use the user's default umask. This parameter is in version 2.3.0
Example: $job_output_file_umask 027
But, anyway, I'm a newbie of torque. I cann't figure out how should I
use the this command for my case.
I've tried use the following line in my pbs script:
But, I finally find the following content in the result out file:
zhaohongsheng at node32:~/Castep_test> cat out
line 14: 027: command not found
Could you please give me some hints?
Hongsheng Zhao <zhaohscas at yahoo.com.cn>
School of Physics and Electrical Information Science,
Ningxia University, Yinchuan 750021, China
More information about the torqueusers