Name | Last modified | Size | Description | |
---|---|---|---|---|
Parent Directory | - | |||
makeMacros.m | 2014-10-21 14:29 | 3.4K | ||
This README file explains and demonstrates the procedure for creating the necessary Linux configuration file to facilitate file syncing between a folder on your PC with another on the SCC.
Upon downloading and running an m-file, two customized macros, cp2scc and cp2pc, will be created. The cp2scc copies (or sync) from a folder (whose path and name you specified while running the m-file) on the PC to a designated folder on the SCC. Similarly, the cp2pc lets you copy from the SCC to the PC.
Note that while a MATLAB example is given, the procedure in general is not limited to MATLAB. Note also these notations throughout this page:
Before we go on to the main topic, let's review the following MobaXterm file structure layout and naming. When you launch MobaX by clicking on the MobaX icon, the only window tab that appears, by default, is your /home/mobaxterm folder (the tab itself indicates that).
[...] -> cd /drives/c/windows
[...] -> ls /drives
c p q s w x
[...] -> cd /drives/c
/home/mobaxterm
/drives/c/windows/...
.
scc1:~ $ cd
scc1:~ $ cp -rp /project/scv/examples/matlab/misc/file_sync .
file_sync
below your home directory has been created. Let's go therescc1:~ $ cd file_sync
scc1:~ $ matlab&
makeMacros.m, README.html
. Lets confirm that with>> ls
README.html* makeMacros.m
>> makeMacros % run this on the SCC
Answer 3 questions (source and destination path and file names, userID on the SCC). The folder should now containREADME.html* cp2pc cp2scc makeMacros.m move2bin*
[...] -> scp -rp your-userID@scc1.bu.edu:~/file_sync/. /home/mobaxterm
move2bin
script. It performs
a few operational tasks
[...] -> ./move2bin
cp2scc
from wherever you are with this command[...] -> which cp2scc
It should tell you that it resides in /home/mobaxterm/bin.
cp2scc, cp2pc
cp2scc
is recommended. The easy
syncing will ensure that the folder in which your matlab code is based is as up-todate as the corresponding one on your PC.