scripting

Extending C# .NET application - build a custom scripting language or not?

梦想与她 提交于 2019-12-30 03:05:10
问题 I need to build a scripting interface for my C# program that does system level testing of embedded firmware. My application contains libraries to fully interact with the devices. There are separate libraries for initiating actions, getting output and tracking success/failure. My application also has a GUI for managing multiple devices and assigning many scripts to be run. For the testers (non-programmers, but technical), I need to provide a scripting interface that will allow them to come up

Shell Variable capacity

穿精又带淫゛_ 提交于 2019-12-30 02:44:08
问题 Suppose i have a shell script in which there is a statement like : a=$(find / -type f) This says there is a certain list of files with their file paths which will be stored in the variable 'a'. What is the maximum limit or number of lines that it can store. How do I find it? 回答1: IIRC, bash does not impose a limit on how much data a variable can store. It is however limited by the environment that bash was executed under. See this answer for a more comprehensive explanation. 回答2: As a data

Interpreting JavaScript in Java with Rhino: pausing/resuming scripts

微笑、不失礼 提交于 2019-12-30 01:53:08
问题 I'm using the javax.script.* package of the JDK. Specifically, I'm using the JavaScript engine, which, from what I've read, seems to be based on a Mozilla-developed JavaScript-in-Java interpreter called Rhino. What I'm hoping to accomplish is to basically have my JavaScript able to "pause" itself at a certain point in the code (say, halfway through a function call) and only resume itself later when Java allows it to do so. To illustrate what I mean, imagine this JavaScript code: function

Java Scripting With Nashorn (JSR 223) & Pre-compilation

拜拜、爱过 提交于 2019-12-30 00:39:21
问题 I am using Nashorn via JSR 223 to execute small snippets of user entered script: public Invocable buildInvocable(String script) throws ScriptException { ScriptEngine engine = new ScriptEngineManager().getEngineByName(ENGINE); engine.eval(functions); engine.eval(script); return (Invocable) engine; } The varying user script calls JavaScript functions that are defined in a static, central library (held in the functions String in the code snippet above). Every time I want to get hold of an

JavaScript code to Class Diagram

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-29 20:03:06
问题 I am looking for a tool that can generate class diagram from JavaScript code. Similar to the ones for C++ and Java. Is there any? 回答1: http://jsuml.org/ 回答2: If you are using node.js, i made a module that generate a class diagram for javascript/node/html/css. Its called wavi. For javascript, function and variable are recognized. https://www.npmjs.org/package/wavi 来源: https://stackoverflow.com/questions/943212/javascript-code-to-class-diagram

JavaScript code to Class Diagram

流过昼夜 提交于 2019-12-29 20:00:01
问题 I am looking for a tool that can generate class diagram from JavaScript code. Similar to the ones for C++ and Java. Is there any? 回答1: http://jsuml.org/ 回答2: If you are using node.js, i made a module that generate a class diagram for javascript/node/html/css. Its called wavi. For javascript, function and variable are recognized. https://www.npmjs.org/package/wavi 来源: https://stackoverflow.com/questions/943212/javascript-code-to-class-diagram

Scripting language for C/C++?

a 夏天 提交于 2019-12-29 18:43:44
问题 Is there a scripting language for C++ (like perl) which can be used for rapid development and use some tool which can convert into C/C++ program to get higher performance for deployment? EDIT: Based on some commented, let me clarify the question. I should be able to convert script into C/C++ program or binary without modifying my script. 回答1: With a C/C++ interpreter you can use C/C++ as a scripting language Ch : http://www.softintegration.com/ Commmercial C/C++ interpreter with a free

Telnet automation / scripting [closed]

五迷三道 提交于 2019-12-29 14:59:51
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 8 months ago . I have already checked this question but could not find what I'm looking for. I am running Windows (the client), and the server is a legacy mainframe type server. Basically I need to write a script, python code or whatever, to send some know commands to the server via telnet, and

Powershell command to set IIS logging settings

血红的双手。 提交于 2019-12-29 06:18:33
问题 I'm creating a powershell script so I can create website hosting with a single command using the IIS Powershell Management Console. I have the commands I need to create the IIS Site and add bindings for the domain names etc... The one piece of the puzzle I'm missing though is how to change the default Logging directory from %SystemDrive%\inetpub\logs\LogFiles to my own folder that's not on the boot drive of the server. After extensive searching I expected to find a command along the lines of

Powershell command to set IIS logging settings

非 Y 不嫁゛ 提交于 2019-12-29 06:17:05
问题 I'm creating a powershell script so I can create website hosting with a single command using the IIS Powershell Management Console. I have the commands I need to create the IIS Site and add bindings for the domain names etc... The one piece of the puzzle I'm missing though is how to change the default Logging directory from %SystemDrive%\inetpub\logs\LogFiles to my own folder that's not on the boot drive of the server. After extensive searching I expected to find a command along the lines of