UNIX Shell

For TeXShop and Skim: Script to open TeXShop at a particular line

Description:
I was e-mailed a request for this. Some people want to use Skim as their TeXShop previewer. However, they want to be able to use Skim's PDFSync compatibility to open TeXShop at a particular line. This script allows them to do this (NOTE: This 1.01 version has been updated. Try the -h option for details or see the web page).

Author's Email:
ted@tedpavlic.com

Author's Full Name:
Ted Pavlic

Author's Homepage:
http://phaseportrait.blogspot.com/2007/07/using-skim-pdfsync-and-texshop.html

Script File:
texshop.gz (1.25 KB)

Script for inverse PDF/DVI searches to Vim

Description:
"Inverse" or "backward" PDF (via PDFSync) and DVI searches allow an author to click on text in a document produced by LaTeX and have the actual LaTeX source get opened and the cursor positioned at the corresponding line. This is supported by several PDF/DVI viewers and text editors in OS X. However, it is not really practical to do with Vim.
I've created this UNIX script to make inverse searches easy to do in Vim. See the "Author's Homepage" URL (or the first few commented lines of the script) for usage information. (UPDATE: There was a typo in version 1.0 uploaded to site. This is now fixed in v1.01 uploaded to site)

Author's Email:
ted@tedpavlic.com

Author's Full Name:
Ted Pavlic

Author's Homepage:
http://phaseportrait.blogspot.com/2007/07/pdfsync-inverse-searches-on-vim-for-os.html

Script File:
gvim-pdfsync.gz (871 bytes)

simpdftexnodel: A simpdftex that is compatible with Skim 0.5+ autorefreshes from disk.

Description:
The simpdftex that comes with most LaTeX distributions is not compatible with the auto-refresh features of Skim version 0.5 and up.
This simpdftexnodel (where "nodel" is short for "no delete") is compatible with Skim.

Author's Email:
ted@tedpavlic.com

Author's Full Name:
Ted Pavlic

Author's Homepage:
http://phaseportrait.blogspot.com/2007/07/skim-automatic-refreshes-and-simpdftex.html

Script File:
simpdftexnodel.gz (7.63 KB)

UNIX script for opening (and refreshing) file in Skim

Description:
Allows a file to be opened from the shell by Skim. This is convenient for some text editors (e.g., Vim, GVim, Emacs, iTeXMac) used to produce, for example, LaTeX documents. (NOTE: Updated 1.03 version has lots of PDFSync support and other AppleScript hooks. Also will figure out file name when you omit extension)

Author's Email:
pavlic.3@osu.edu

Author's Full Name:
Ted Pavlic

Author's Homepage:
http://phaseportrait.blogspot.com/2007/07/script-to-open-file-in-skim-from.html

Script File:
skim.gz (1.88 KB)

UNIX script for opening (and refreshing) file in TeXniscope

Description:
Allows a file to be opened from the shell by TeXniscope. This is convenient for some text editors (e.g., Vim, GVim, Emacs, iTeXMac) used to produce, for example, LaTeX documents. (NOTE: Updated version has PDFSync support and other AppleScript hooks. See web page or -h option for more information)

Author's Email:
pavlic.3@osu.edu

Author's Full Name:
Ted Pavlic

Author's Homepage:
http://phaseportrait.blogspot.com/2007/07/script-to-open-file-in-texniscope-from.html

Script File:
texniscope.gz (1.84 KB)

logging the memory for the core image of a process

Description:
This script logs the size of the core image for a process with name $1 at a sampling rate of $2 into a file $3. The file can easily be plotted with gnuplot. The command './musa job 15s log' will write the size of the core image of the process called job at 15s intervalls into the file log. It uses a bash shell and requires awk.

Author's Full Name:
Juerg Hauser

Author's Homepage:

Script File:
musa.sh.tar.gz (481 bytes)

command-line Xsan quota (script)

Description:
Xsan has no support for the OS X default command-line quota tool. There is a Xsan quota GUI tool, but for supercomputing (or other remote-only SSH access) that isn't so useful. So here's a little script that along with some crontab 'cvadmin -F -e repquota;cp .../quota_report.csv /Volumes//' can let your users see their quotas.

Author's Email:
jbooth@uiuc.edu

Author's Full Name:
Jonathan Booth

Author's Homepage:

Script File:
quota.sh.zip (2.4 KB)

Generate cvlabel label file

Description:
This little tcl script (not really unix shell, but hey you don't have a tcl category!) will take a mapping of your WWIDs for your Xserve RAIDs and human-readable names you'd like to apply to them. It will then spit out a label file that is appropriate to feed to cvlabel to label all of your luns without the hassal of using Xsan Admin and looking up each WWID as you come across it.

Author's Email:
jbooth@uiuc.edu

Author's Full Name:
Jonathan Booth

Author's Homepage:

Script File:
generate_label_file.tcl (3.96 KB)

xgridcc - Distributed Compilation with Xgrid

Description:
This script can be used to perform distributed compilation with Xgrid and gcc, much like distcc in Xcode. It is basically intended for demonstrative purposes, but could be adapted and used in a real project, and even with different compilers and programming languages (unlike distcc).
To use it, fill a directory with some source files, and pass the file names on the command line, like so

xgridcc *.c

Author's Email:
drewmccormack@mac.com

Author's Full Name:
Drew McCormack

Author's Homepage:
http://www.maniacalextent.com

Script File:
xgridcc.zip (1.06 KB)

Xgrid ADF Submission

Description:
This is a simple shell script that prepares input files for the quantum chemistry package ADF (http://www.scm.com), and submits a serial job with Xgrid. The script could also be used as a basis for writing Xgrid submission scripts for other quantum chemistry packages.

Author's Email:
drewmccormack@mac.com

Author's Full Name:
Drew McCormack

Author's Homepage:
http://www.maniacalextent.com

Script File:
xgrid_adf_submit.sh.zip (720 bytes)