summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/smbscript.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r7530: Simply calling convention of lp_load().Andrew Bartlett1-1/+1
This always loads all the services, as we now don't have an easy way to split out smbd. Andrew Bartlett (This used to be commit 990e061939c76b559c4f5914c5fc6ca1b13e19dd)
2007-10-10r7500: Initialise module subsystems.Tim Potter1-0/+2
(This used to be commit 564dfe14d00e80a0d373ab0fc17803ffaac0892e)
2007-10-10r7263: Exit smbscript with the intepreter return value (defaults to 0).Tim Potter1-10/+13
Change the exit value for an exception, usage error and other non-js errors to 127 which is kinda like the return value for the system(3) function. (This used to be commit c77a232b1152a27e2d8ffb719aefba6c6b2ba6df)
2007-10-10r7262: Add a length property to ARGV array.Tim Potter1-0/+1
(This used to be commit 4b775c619b7abed52d158ab70505320753a0c9cb)
2007-10-10r7223: Advance script past interpreter line.Tim Potter1-0/+11
(This used to be commit 31b9fadbed656f666f587a9dcb5a7627a2d388aa)
2007-10-10r7215: Convert smbscript to use ejsEvalScript() and file_load() instead ofTim Potter1-4/+7
ejsEvalFile(). Still need to add advancement of the script past the hash-bang line but it's home time now!! (This used to be commit 14a2053c045a2df1d68838900c833c2a15cb5a36)
2007-10-10r7082: Call load_interfaces() in smbscript initialisation.Tim Potter1-0/+2
(This used to be commit 54051bf8bbb18653adafb37cc6181617ca60b781)
2007-10-10r7080: Fix typo in error message.Tim Potter1-1/+1
(This used to be commit fcf177c86e2bfbc993352b80824487e5df0a3f63)
2007-10-10r7078: - fix an uninitialised variable in smbscriptAndrew Tridgell1-1/+1
- fixed handle passing in the smb/ejs interface calls, so they can be called safely from esp (This used to be commit 45ea1b64413de577366939b2106f657f6c47b1bd)
2007-10-10r7075: added support for ARGV[] in ejs scriptsAndrew Tridgell1-1/+12
(This used to be commit 3db568eb6bb383c4c1e1fd0c7f043a9914dcc3cc)
2007-10-10r7074: we should load all shares in smbscriptAndrew Tridgell1-1/+1
(This used to be commit 92f85507df2bce5e246484860a43748321f2291e)
2007-10-10r7072: moved the esp hooks calls to the ejs level, so we can call them fromAndrew Tridgell1-12/+15
both esp scripts and ejs scripts. This allows the smbscript program to call all the existing extension calls like lpGet() and ldbSearch() Also fixed smbscript to load smb.conf, and setup logging for DEBUG() I left the unixAuth() routine in web_server/calls.c at the moment, as that is really only useful for esp scripts. I imagine that as we extend esp/ejs, we will put some functions in scripting/ejs/ for use in both ejs and esp, and some functions in web_server/ where they will only be accessed by esp web scripts (This used to be commit e59ae64f60d388a5634559e4e0887e4676b70871)
2007-10-10r7069: Add a little usage message to smbscript and fix a compiler warning. MyVolker Lendecke1-1/+7
compiler still complains about "handle" (scripting/ejs/smbscrip.c:46) possibly not being initialized and to me this looks true. Running smbscript with the trivial write("Hello, world\n"); also leaves some memory around. Volker (This used to be commit 06d27a19213dc8fe6dfc948a5e8cbafa74db7a29)
2007-10-10r7066: Rename http_exception to ejs_exception.Tim Potter1-2/+2
(This used to be commit f2e59d3adfd7813c3c2090350f8ff2a99a5533e9)
2007-10-10r7065: Move ejs from web_server to lib so it can be shared with smbscript.Tim Potter1-1/+1
(This used to be commit b83dc8fbfb9ffe30654bc4869398f50dd9ccccb7)
2007-10-10r7064: Clean up handle parameter passing after peeking at tridge's ejstest.cTim Potter1-4/+4
(This used to be commit 805b6c7cf0f1e05fbb690bdfc93938747e13e6cd)
2007-10-10r7063: Do error checking on the ejs functions.Tim Potter1-9/+19
Tridge says there is a bug in defining per-engine CFunction's so move calls to ejsDefineStringCFunction() above the ejsOpenEngine() call. Test script now works! (This used to be commit 5e2458ae6c863ff29b85fff3d093f7f4fa9dc2be)
2007-10-10r7061: A ejs scripting client. This should allow javascript to be run in aTim Potter1-0/+62
command line environment instead of inside the web server. It doesn't work yet though, rather an exception is thrown when trying to call ejsDefineStringCFunction(). (This used to be commit 3444cd5429dfef5a67d5bf7818ae08e4e8cc5ccc)