Synching Scripts: Difference between revisions

From CCN Wiki
Jump to navigation Jump to search
Line 13: Line 13:
== Updating your MATLAB scripts ==
== Updating your MATLAB scripts ==
For a .m function or script file to run in MATLAB, it has to be found in your MATLAB path variable. Unless you went out of your way to change it, your MATLAB path will include your $HOME/Documents/MATLAB/ directory. You can include any custom MATLAB scripts from the ubfs server in MATLAB by copying (from a Linux terminal window) these files from the ubfs folder in a similar manner to how the shell scripts are updated:
For a .m function or script file to run in MATLAB, it has to be found in your MATLAB path variable. Unless you went out of your way to change it, your MATLAB path will include your $HOME/Documents/MATLAB/ directory. You can include any custom MATLAB scripts from the ubfs server in MATLAB by copying (from a Linux terminal window) these files from the ubfs folder in a similar manner to how the shell scripts are updated:
  cp ~/ubfs/cpmcnorg/Scripts/Matlab/*.m ~/Documents/MATLAB/
  cp ~/ubfs/cpmcnorg/Scripts/Matlab/*.* ~/Documents/MATLAB/
This will overwrite any files with the same name with the version stored on the remote server.
This will overwrite any files with the same name with the version stored on the remote server.

Revision as of 11:34, 5 April 2016

The ubfs lab folder contains a growing collection of scripts that have been written to simplify a number of mundane, tedious or possibly error-prone tasks in different environments.

After you have mounted the UBFS folder, you can navigate to the scripts folder in the computer browser window, or in the terminal window:

cd ~/ubfs/Scripts

Scripts are organized into several subdirectories, generally grouped by programming environment.

Updating your shell scripts

Your Linux $PATH environment variable includes your $HOME/bin directory. This is where useful Linux shell scripts should go. To ensure that you have the latest collection of shell scripts, you can copy the contents of the ubfs/Scripts/Shell directory to your $HOME/bin directory:

cp ~/ubfs/cpmcnorg/Scripts/Shell/* ~/bin/

This will overwrite any files with the same name with the version stored on the remote server.

Updating your MATLAB scripts

For a .m function or script file to run in MATLAB, it has to be found in your MATLAB path variable. Unless you went out of your way to change it, your MATLAB path will include your $HOME/Documents/MATLAB/ directory. You can include any custom MATLAB scripts from the ubfs server in MATLAB by copying (from a Linux terminal window) these files from the ubfs folder in a similar manner to how the shell scripts are updated:

cp ~/ubfs/cpmcnorg/Scripts/Matlab/*.* ~/Documents/MATLAB/

This will overwrite any files with the same name with the version stored on the remote server.