Skip to content

Shell commands

All commands described here allow -h parameter that will display a help message containing a wider description of its usage.

TIP

It is not allowed to upload calculations to the base path /db/username, you must always upload calculations into a project.

TIP

Two calculations with the same name and in the same project are not allowed, otherwise upload process will fail.

Basic parameters

CommandDescription
source start-rep-shellConnect to repository
lsproList current path contents
pwdproPrint current path (similar to pwd)
exit-repDisconnect from repository
CommandDescription
catproDisplay project information
cdproChange to project
cproCreate a new project
mproModify a project
dproDelete a project
findproFind project by it's name (regex allowed)
CommandDescription
viewcalcView calculation information
mcalcModify a calculation
dcalcDelete calculation from repository
getxyzRetrieve calculation geometry as XYZ

Calculation type specific commands

CommandDescription
loadadfLoad ADF calculation
loadamsLoad AMS calculation
loadamberLoad Amber calculation
loadcastepLoad CASTEP calculation
loadgaussLoad Gaussian calculation
loadgromacsLoad GROMACS calculation
loadgronorLoad GronOR calculation
loadgrrmLoad GRRM calculation
loadlammpsLoad LAMMPS calculation
loadmolcasLoad Molcas calculation
loadmopacLoad Mopac calculation
loadorcaLoad Orca calculation
loadqespressoLoad QuantumESPRESSO calculation
loadturboLoad Turbomole calculation
loadsiestaLoad SIESTA calculation
loadvaspLoad Vasp calculation

Basic parameters explained

start-rep-shell

Used to connect to the repository, it must be always preceded by source or . (dot), otherwise neither connection nor commands will work.

Examples:

console
$ source start-rep-shell   #Connect to repository using long format
$ . start-rep-shell        #Connect to repository using short format

lspro

Displays content of current path: projects and calculations. Otherwise we can define a path to list its content.

ParametersDescription
-n pathRelative or absolute path project (optional)
-fDisplay long format in listing (optional)
-o orderOrder by:
n->name,
o->owner,
g ->groupt->time,
c->concept,
s->state

Examples:

console
$ lspro                               #Sample listing in current path 
$ lspro -n /db/username/hexenol       #Lists by name the content of hexenol project (absolute path)
$ lspro -o Sc2C82                     #Lists by owner the content of hexenol project (relative to current path)

pwdpro

Displays the current path, similar to pwd (print working directory) but lists current position inside the project's hierarchy.

Examples:

console
$ pwdpro      #Prints current path

exit-rep

Disconnects from the repository and ends current session. All repository commands are disabled after this command is executed.

Examples:

console
$ exit-rep     #Disconnects from repository

catpro

Displays project information.

ParametersDescription
-n pathRelative or absolute project path (mandatory)

Examples:

console
$ catpro -n hexenol                 # Prints project information using relative path
$ catpro -n /db/username/hexenol    # Print project information using absolute path

cdpro

Changes path by navigating to parent / child project or an absolute path.

ParametersDescription
-n pathRelative or absolute project path (mandatory except on ..)

Examples:

console
$ cdpro ..                               # Changes path to parent project 
$ cdpro -n metanol                       # Navigates to child project called metanol
$ cdpro -n /db/username/metanol/freq     #Navigates to project using full path

cpro

Creates new project in current path. If name or description parameters contains blank spaces, they must be enclosed in double quotes.

ParametersDescription
-nName of the project (mandatory)
-dDescription of the project (mandatory)
-cgConcept Group of the project (optional)

Examples:

console
$ cpro -n metanol -d metanol                 # Creates metanol project with metanol description 
$ cpro -n metanol -d metanol -cg FRQ         # Creates project with description and concept group
$ cpro -n metanol -d  "This is the metanol project description"  # Creates metanol project with a long description

mpro

Modifies the selected project properties, name, description or even moves it to another project (as a nested project).

ParametersDescription
-n pathRelative or absolute project path (mandatory)
-p permissionsPermissions of the project. Ex: 'rw----' (optional)
-o ownerOwner of the project (optional)
-g groupGroup owner of the project (optional)
-cg concept_groupConcept Group of the project (optional)
-nn nameNew Name of the project (optional)
-np pathNew Parent project (absolute path) (optional)
-d descriptionDescription of the project (optional)

Examples:

console
$ mpro -n /db/username/hexenol -nn hexenolMod             # Replaces project name by hexenolMod 
$ mpro -n /db/username/hexenol -np /db/user/alcohols      # Moves selected project to another parent project
$ mpro -n /db/username/hexenol -d "Replaced description"  # Replaces description on selected project

dpro

Deletes a project by defining its path, all child projects and calculations will also be removed from Create.

ParametersDescription
-n pathRelative or absolute project path (mandatory)

Examples:

console
$ dpro -n metanol                          # Deletes metanol project using relative path, our path must be at the level of this project 
$ dpro -n /db/username/alcohols/metanol    # Deletes metanol project using absolute path, current path position is not relevant here

findpro

Find project by it's name (regex allowed)

ParametersDescription
-n nameRegular expression to find in the name field of project (optional)
-d descriptionRegular expression to find in the description field of project (optional)
-p pathRegular expression to find in the path field of project (optional)

Examples:

console
$ findpro -n metan*            # Finds projects which name match regular expression metan*
$ findpro -d "alco*"           # Finds projects which description match regular expression alco*

viewcalc

This comands displays the most relevant information about a calculation and retrieves its files.

ParametersDescription
-n pathRelative or absolute project path (mandatory)
-f [filename]Download single calculation file, all if filename not specified.
Requires -dcp parameter (optional)
-dcp pathFull path where to store the files. It is mandatory to set also -f parameter (optional)

Examples:

console
$ viewcalc -n calc1                      # Display calculation on current project with name calc1
$ viewcalc -n /db/user1/project/calc1    # Display calculation providing is fullpath
$ viewcalc -n calc1 -f output.cml -dcp /home/user/tmp/calc1  # Display calculation information and store output.cml file on the provided folder
$ viewcalc -n calc1 -f -dcp /home/user/tmp/calc1  # Display calculation information and store its files on the provided folder

mcalc

Modifies the selected calculation properties, name, description or even moves it to another project.

ParametersDescription
-n pathRelative or absolute calculation path (mandatory)
-nn nameNew Name of the calculation (optional)
-np pathNew Parent project (absolute path) (optional)
-d descriptionNew description of the calculation (optional)

Examples:

console
$ mcalc -n /db/user/metOH-oxidation/freq1 -nn freq2                  # Replaces calculation name by freq2 
$ mcalc -n /db/user/metOH-oxidation/freq1 -np /db/user/alcohols      # Moves selected calculation to another project
$ mcalc -n /db/user/metOH-oxidation/freq1 -d "Another description"   # Replaces description on selected calculation

dcalc

This command deletes a calculation given its name.

ParametersDescription
-n pathRelative or absolute calculation path (mandatory)

Using full calculation path:

console
$ dcalc -n  /db/user/metOH-oxidation/freq1    #Will delete calculation freq1 inside metOH-oxidation project

Navigating to parent project and using calculation name:

console
$ cdpro metOH-oxidation             #Move to parent project
$ dcalc -n freq1                    #Will delete calculation freq1

getxyz

This command retrieves the geometry of a calculation given its id.

ParametersDescription
-n idCalculation number id (mandatory)
-o filenameOutput to file instead of stdout (optional)
console
$ getxyz -n 14837                   # Retrieve geometry of calculation with ID 14837 and display on stdout
$ getxyz -n 14837 -o geom.xyz       # Retrieve geometry of calculation with ID 14837 and store it in geom.xyz file

Calculation type specific commands

There is a group of helper Linux scripts that simplify the process of uploading calculations:

ScriptFunction
loadadfUpload ADF calculation
loadamsUpload AMS calculation
loadamberUpload Amber calculation
loadcastepUpload CASTEP calculation
loadgaussUpload Gaussian calculation
loadgromacsUpload GROMACS calculation
loadgronorUpload GronOR calculation
loadgrrmUpload GRRM calculation
loadlammpsUpload LAMMPS calculation
loadmolcasUpload Molcas calculation
loadmopacUpload Mopac calculation
loadorcaUpload Orca calculation
loadqespressoUpload QuantumEspresso calculation
loadturboUpload Turbomole calculation
loadsiestaUpload SIESTA calculation
loadvaspUpload Vasp calculations (Nudge Elastic Band and Dimmer are also included)