Project

General

Profile

Configure appioncfg shared » History » Version 13

Dmitry Lyumkis, 11/19/2014 12:00 PM

1 1 Amber Herold
h1. Configure .appion.cfg
2
3 11 Amber Herold
The .appion.cfg file is used to automatically create job files and submit them to your job submission server. The example file provided below works for the Torque Resource Manager.
4
Instructions for installing Torque appear as a later step in this manual under the [[Setup Remote Processing]] section.
5
6 12 Anchi Cheng
# Create a hidden file called .appion.cfg in the myami directory, at one level above where appionlib reside as the configuration for all users
7 7 Anchi Cheng
For example, from python command prompt
8
<pre>
9
import appionlib
10
appionlib
11
</pre>
12 8 Anchi Cheng
gives
13 7 Anchi Cheng
<pre>
14 9 Sargis Dallakyan
<module 'appionlib' from '/usr/lib/python26/site-packages/appionlib/__init__.pyc'>
15 7 Anchi Cheng
</pre>
16 8 Anchi Cheng
then the path where appion looks for this global configuration file is
17 7 Anchi Cheng
<pre>
18 10 Sargis Dallakyan
/usr/lib/python26/.appion.cfg
19 7 Anchi Cheng
</pre>
20
21 6 Amber Herold
*Note:* This file may be added to a users home directory on the processing host to override the configuration found in the installation directory. 
22 3 Amber Herold
&nbsp;
23 2 Amber Herold
# Add the following contents:
24 1 Amber Herold
<pre>
25
ProcessingHostType=Torque
26
27
Shell=/bin/csh
28
29
ScriptPrefix=
30
31
ExecCommand=/usr/local/bin/qsub
32
33
StatusCommand=/usr/local/bin/qstat
34
35
AdditionalHeaders= -m e, -j oe
36
37
PreExecuteLines=
38 5 Amber Herold
</pre>
39 13 Dmitry Lyumkis
# Modify the settings for your Processing Host. For example, you can specify "SGE" if your processingHostType uses the Sun Grid Engine scheduler or /bin/bash if your shell is bash.