Support Requests item #537771, was opened at 2002-04-01 11:51
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=203152&aid=537771&group_id=3152
Category: Scripting: CGI
Group: aolserver3_4
Status: Open
Resolution: None
Priority: 5
Submitted By: Lance Martel (martellm)
Assigned to: Nobody/Anonymous (nobody)
Summary: NSV Problems - Help.
Initial Comment:
Hi,
I am attempting to create a shared lock on a log file
and am migrating from ns_share to nsv. Here's the
synopsis:
1) Init.tcl - open logFile and create lock.
set cat [catch {set logFile [open "mylog.txt") a]}]
nsv_set sharedLock logFile [ns_mutex create]
2) Proc.cgi - create mutex and wrtie line of text to
logFile
ns_mutex lock [nsv_get sharedLock logFile]
nsv_append sharedLock logFile "log $line"
Nothing appear to be written to the logFile after
exectuing the command. I don't see any errors in the
server log either.
Please help!
Lance.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=203152&aid=537771&group_id=3152