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

Re: lock file in .netscape



On Tue, Feb 22, 2000 at 11:12:47AM -0600, Thomas E. Dodd /CSDC wrote:
| Nothing new about the lock file.
| 
| 127.0.0.1 is the IP of the machine it's running on,
| the next 4 digits should be the PID of the netscape
| process.
| 
| Netscape uses this to prevent more than one instance of netscape
| from accessing the config data( like preferences).
| 
| When netscape craches the lock file gets left behind.
| If you exit netscape, the lock file is deleted.
| 
| You need to figure out why netscape keeps craching.

My current hypothesis is that it has serious internal code problems.
No matter. I run netscape via a script, which says somewhere:

	if [ ! -f "$HOME/.netscape/lock" ] || ask "Lockfile exists, remove and proceed"
	then
	    rm -f $HOME/.netscape/lock
	else
	    echo "$0: exiting because of active netscape lock file" >&2
	    exit 1
	fi

	exec netscape ${1+"$@"}

You can get "ask" here:
	http://www.zip.com.au/~cs/scripts/ask
Very short script, very handy. Uses necho from the same script
sollection (which figures out "echo -n" versus "echo '....\c' to keep
scripts portable).

Cheers,
-- 
Cameron Simpson, DoD#743        cs zip com au    http://www.zip.com.au/~cs/

After clicking on seven pull-down menus and clicking [OK],
this thing still asks me "ARE YOU SURE YOU WANT TO CONTINUE?"
No, you stupid machine.... I had a spasm, so it was all a mistake.
Duh.
	- Dean Malandris <plexus zip com au>



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