Also see our About R and R Studio Server help page.
...
Also, we recommend you use rsync over scp. While both work, rsync has much better performance (it is multi-threaded) and has the ability to pick up where it left off when transferring large directories. Unfortunately, its man page is about the length of War and Peace, but 90% of the time there is an easy formula. For example, to invoke rsync on a directory ~/foo at TACC (for example) to a local shared Work area directory for the GSAF group on the GSAF POD:
Code Block | ||
---|---|---|
| ||
# Target the storage server from the UT campus network rsync -avrW ~/foo/ \ abattenh@gsafstor01.ccbb.utexas.edu:/stor/work/GSAF/foo/ # Target the storage server from off campus with VPN service active rsync -avrW -e 'ssh -p 222' ~/foo/ \ abattenh@gsafstor01.ccbb.utexas.edu:/stor/work/GSAF/foo/ |
Note that the trailing slash ( / ) characters for the source and target directory names are very important.
...
- the
<user>
portion is your BRCF account name (abattenh
above) - the
<storage_server>
portion is the full host name of your BRCF storage server (gsafstor01.ccbb.utexas.edu
above)- see this table to identify your POD's storage server: Available PODs
- the <group> portion matches your Linux group name on your POD (
GSAF
above)- type groups when logged into one of your POD compute servers to list your group(s)
- the -avrW options say to sync the entire directory tree, and to handle large files efficiently.
- the -e 'ssh -p 222' option tells rsync to use non-standard port 222 from off campus.
Finally, it is important that large files not be transferred to your POD Home directory, as that directory has a 100 GB quota. See Home directory quotas for more information.
...
From your X11-enabled terminal, use ssh -Y to connect to the POD compute server (the -Y enables forwarding of the X11 commands to the X-terminal). Once logged in, type matlab. This will (slowly) open a graphical window to run matlab in.
Here's how to create a script in matlab.
- In the "Command Window" in the middle of the matlab window, type "1+1" and hit return, it should say "2".
- Click the "New Script" button at the upper left (or the "New" Button, then select "Script" if you don't see "New Script").
- This will open an editing window for a script.
- This will open an editing window for a script.
- Type "1+1" in the window, then click "Save" from the upper menu.
- Name it anything with a ".m" extension (such as untitled.m, the default).
- Name it anything with a ".m" extension (such as untitled.m, the default).
- You can then use then "Open" menu, or the "Current Folder" pain, to open that file in the future.
- Once open in the Editor, you can use the "Run" command from the Editor menu to run it.
- Exit matlab (using either the "exit" or "quit" command)
To open matlab without the graphical interface, type the not-so-short or intuitive command: matlab -nodisplay -nosplash. This should give an interactive command prompt. To exit, type quit or exit. Other sometimes-useful options for the non-GUI matlab include -nojvm (might speed things up a bit) and -wait (wait until your jobs finish before exiting).
To run the "script" we created above (called untitled.m in your home directory) and exit, you can do something like:
Code Block | ||
---|---|---|
| ||
matlab -nodisplay -nosplash -r "run('~/untitled.m');quit" |
To add some error checking, you can use:
Code Block | ||
---|---|---|
| ||
matlab -nodisplay -nosplash -r "try, run('~/untitled.m'), catch, exit, end, exit" |
Another simple example script could be created and executed from the command line as shown below. (It should tell you the answer is "7.3529".)
Code Block | ||
---|---|---|
| ||
echo "5^3/(2^4+1)" > ~/untitled2.m matlab -nodisplay -nosplash -nojvm -r "run('~/untitled2.m');quit" |
...