Windows
All users have the
H:\CTC Tools folder in their default path. This is where CTC installs general use commands that do not need to be installed locally on each machine.
Some of the more widely-used commands are listed below. Some are .bat files (which
sometimes call perl programs) and some are .exe files.
Setup files
Compilers and applications which require some setup before users can run them will
have a .bat file beginning with "setup_"; for example, the Gaussian application
setup file is named setup_gaussian.bat.
To see a list of all setup files, type:
setup_list
Editors (
vi, vile, winvile)
If you want to use one of these vi-type editors, the one you choose will depend
upon which editing functions you use and your own personal preference. Try them
all and see which one you like.
FYI, emacs and vim are installed locally (not in H:\CTC Tools) in the collaboratory
and on login nodes. The usual Windows editors (i.e., notepad and wordpad) are also
installed locally on all machines.
Process query/kill commands for command line use
pslist - lists processes, process ID, and various process details.
pulist - lists processes and just their process ID.
pskill - kills a process; e.g., pskill process_id
Processor Affinity tools
(Functions for Pinning Tasks to Processors)
If you have more than one task running on a multi-processor node, it is important
to pin each task to a different processor. Otherwise, your tasks will likely
move from processor to processor, requiring extra cache loads and increasing total
processing time.
Tools are in the H:\CTC Tools\ProcAffin folder.
Accounting commands
showgrps - shows groups to which user belongs; defaults to currently logged
in user.
showmbrs - shows users which belong to a particular group.
vbalance - displays the original allocation amount and the current balance.
Parallel job utilities
MachineMaker - automatically generates a machines file for MPI/PRO
mcp - copies a file to local disk on every node; for details on use see the
mcp document.
Other miscellaneous commands
login.bat - contains all the commands needed to set up the general environment
for users (path, temp space, etc). This file is automatically called whenever you
login to the ctc_ith domain. A convenient way to customize your environment is to
put the appropriate commands in a file named userlogin.bat in your home directory.
If this file exists, login.bat will call it.
notify - sends one-line email to a user; useful for sending yourself email
from a batch command file.
e.g., notify JoeUser@tc.cornell.edu "Hello Joe"
sleep - pauses execution for number of seconds.
e.g., sleep 5
uptime - displays how long machine has been up since last reboot.
whoami - display login name and domain name.
Application help commands
For some applications, help can be accessed by executing a .bat file of the form
help_application.bat in H:\CTC Tools. For example, the Gaussian application
help file is named help_gaussian.bat. From a login node (or any machine where H:
is mapped), users can invoke the help in one of two ways:
1. Browse the H:\CTC Tools folder and double click on the file help_gaussian.bat
2. From a command prompt (H:\CTC Tools must be in your path), issue the command:
help_gaussian.bat
Linux
General purpose utilities can be found in the usual UNIX locations, e.g., /usr/bin.
CTC will be installing locally developed tools and perhaps some other utilities
in /ctc/tools.