zsh job number autocomplete
Sun 16 November 2014 by Dr. Dirk ColbryBlog post edited by Anonymous - "Migration of unmigrated content due to installation of a new plugin"
We do not directly support zsh users on our system. However, many of our more advanced users enjoy some of the modern and advanced features provided by zsh. One of these users shared a code snippet that he uses in his ~/.zshrc file to autocomplete job id numbers. He is letting us share the code for use to our users who prefer zsh over bash.
.zshrc
_jobs_list() {
qstat | grep $USER | cut -d' ' -f1 | cut -d'.' -f1
}
_jshow_complete() {
if (( CURRENT ==2)); then
jjobs=( $(_jobs_list))
_multi_parts / jjobs
else
_files
fi
}
compdef _jshow_complete showstart jdel checkjob qstat
This code should work on any system that used PBS Torque.
I hope you find it useful,
- Dirk
Blogpost migrated from ICER Wiki using custom python script. Comment on errors below.
2014-02-27 HPCC Traveling Roadshow - Quantitative Fisheries Center
Blog post added by Anonymous
I talked to the Quantitative Fisheries Center today and had a lively discussion on how to utilize HPCC resources better. Below are links to my slides as well as a copy of the submission scripts that we worked on as a group.
- Dirk
Using X11 Virtual Frame Buffer (Xvfb) in a submission script
Blog post edited by Nicholas Anthony Rahme
Some programs require access to a display in order to run properly. For example, MATLAB will provide an error if you try to create an AVI file from a image frame in -nodisplay mode. This can be an annoying problem on the HPCC …
read moreRunning ANSYS CFX5 solver on the HPCC
Blog post edited by Anonymous - "Migration of unmigrated content due to installation of a new plugin"
The following job submission script should get a parallel MPI solve of the cfx5solver working. In order for this to work on our system I needed to change the ANSYS module file to include …
read moreRunning the XSEDE MPI workshop examples on the HPCC
Blog post edited by Anonymous - "Migration of unmigrated content due to installation of a new plugin"
Differences in examples to get them to run on the HPCC.
Step 1:
Download these examples buy loading the power tools module and using the get
example command:
module load powertools
getexample
getexample XSEDE_MPI_WORKSHOP …
Working with ImageJ plugins on the HPCC
Blog post edited by Anonymous - "Migration of unmigrated content due to installation of a new plugin"
Post written by Dan Perez (iCER Intern)
Errors
One of the iCER users has had problems getting ImageJ - ImageViewer scripts and plugins working on the HPCC. The ImageViewer classes, plugins, and scripts are in …
read moreUsing Python virtualenv on the HPCC
Blog post edited by Anonymous - "Migration of unmigrated content due to installation of a new plugin"
Python has a lot of packages, modules and libraries that researchers may want to use. However, it is difficult for iCER and the HPCC to keep up with and install all of the different …
read moreBuilding a VM suitable for distribution to a class on a USB drive
Blog post edited by Anonymous - "Migration of unmigrated content due to installation of a new plugin"
I am teaching a class to first and second year undergrads. Since we will be using many different types of software I was discouraged by the idea of installing all of the software they …
read moreffmpeg to select video sequences
Blog post edited by Anonymous - "Migration of unmigrated content due to installation of a new plugin"
ffmpeg can be used to crop the start and end times of a video sequece. Use the following command to read though the ffmpeg help message in the terminal window:
man ffmpeg
Use arrow …
read moreChoosing more than one architecture type
Blog post edited by Anonymous - "Migration of unmigrated content due to installation of a new plugin"
Although all of our nodes are binary compatible, the HPCC is a heterogeneous cluster based built from many different types of nodes. The node types are based on the type of architecture that the …
read more