#!/bin/sh # # Script to automate graphical user interface for cluster waveform plotter directory=`pwd` # Calling MATLAB and the gui.m program cd /home/swk/cluster/waveform matlab -nojvm -r 'global cwd',cwd="'"$directory"'",gui cd ${directory} exit 0