Command history file not being saved/loaded on Ubuntu

Hi,
I am running R2011A on Ubuntu. The history.m file saved commands from first ever session that I ran. After that it stopped updating it, and every session would load commands from that first session. I tried (backing up first and then) deleting the history file, but it would not create a new history.m file in my PREFDIR. So at the startup, the command history window is empty. Even after I manually created a history.m file, it wouldn't save anything in it. It doesn't give any error so I don't know if it is trying to save but cannot. Here are the permissions in my PREFDIR
drwxr-xr-x 2 ab ab 4096 2011-08-11 17:41 .
drwxr-xr-x 3 ab ab 4096 2011-07-07 12:55 ..
-rw-r--r-- 1 ab ab 90 2011-07-07 15:10 cwdhistory.m
-rw-r--r-- 1 ab ab 0 2011-08-11 17:41 history.m
-rw-r--r-- 1 ab ab 8632 2011-07-07 15:10 MATLABDesktop.xml
-rw-r--r-- 1 ab ab 6535 2011-07-07 12:57 MATLABDesktop.xml.prev
-rw-rw-rw- 1 ab ab 3256 2011-08-11 17:43 matlab.prf
-r-xr-xr-x 1 ab ab 7849 2011-07-07 12:56 mbuildopts.sh
-rw-r--r-- 1 ab ab 480 2011-08-11 17:39 oldhistory.m
-rw-r--r-- 1 ab ab 9201 2011-07-07 15:10 plotpickercache.xml
-rw-r--r-- 1 ab ab 1277 2011-07-07 12:55 shortcuts.xml
-rw-r--r-- 1 ab ab 724709 2011-07-07 15:10 toolbox_cache-7.12.0-2233058965-glnxa64.xml
Would appreciate any insights. Thanks! Ab

Answers (1)

Fixed: After I changed the permissions and added the .prf file to be used by user.
sudo chown -R ${USER}:${USER} ~/.matlab
And then rebooted the machine and the changes took place. Now my history loads just fine since yesterday.

Categories

Asked:

on 12 Aug 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!