Name Last modified Size Description
Parent Directory - makeMacros.m 21-Oct-2014 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
scc1:~ $ cd
scc1:~ $ cp -rp /project/scv/examples/matlab/misc/file_sync .
file_syncbelow your home directory has been created. Let's go there
scc1:~ $ cd file_sync
scc1:~ $ matlab&
makeMacros.m, README.html. Lets confirm that with
Answer 3 questions (source and destination path and file names, userID on the SCC). The folder should now contain
>> makeMacros % run this on the SCC
README.html* cp2pc cp2scc makeMacros.m move2bin*
[...] -> scp -rp your-userID@scc1.bu.edu:~/file_sync/. /home/mobaxterm
move2binscript. It performs a few operational tasks
[...] -> ./move2bin
cp2sccfrom wherever you are with this command
It should tell you that it resides in /home/mobaxterm/bin.
[...] -> which cp2scc
cp2sccis 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.