JP Vossen on 14 Sep 2007 18:27:20 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Bash History question


Date: Thu, 13 Sep 2007 19:34:02 -0400
From: "Mag Gam" <magawake@gmail.com>
Subject: Re: [PLUG] Bash History question

Also, currently users $HOME are synced with NFS, woulld JP's Automatic
method work? Ie. If a user types in a command in server1, will that be
registed in history for server2?

I don't see why not. ~/.bash_history is just a file, and 'history -a/-n' write/read that file. So if it's the same file over an NFS share, that should work.


Except... Something I had not considered before--I don't know if there is any kind of locking going on here. So a $PROMPT_COMMAND or NFS share might result in .bash_history file corruption due to collisions. I guess if you are doing the manual thing over NFS you'd be OK unless you have a lot of latency someplace and try to do it too fast.

I'll see if I can find out.

Later,
JP
----------------------------|:::======|-------------------------------
JP Vossen, CISSP            |:::======|        jp{at}jpsdomain{dot}org
My Account, My Opinions     |=========|      http://www.jpsdomain.org/
----------------------------|=========|-------------------------------
Microsoft has single-handedly nullified Moore's Law.
Innate design flaws of Windows make a personal firewall, anti-virus
and anti-malware software mandatory. The resulting software arms race
has effectively flattened Moore's Law on hardware running Windows.
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug