cli

How is JIT compiled code injected in memory and executed?

"Consider a typical Windows x86 or AMD64 architecture, the memory is divided in executable sections that cannot be written to and data sections that can be written to but cannot be executed (think DEP)." "JIT compiles methods in-memory, does (generally) not store anything to disk, instead moves it around where the...

Why in PHP CLI getmypid() returns 0 as a pid?

I'm developing a long running command line script and of course I want in not to launch itself more than once. So I write a .pid file and on launch check if a process with such PID exists. The problem is on Windows it returns 0 as a PID, so I always get a process by that PID running (System Idle has PID 0). Does someone know how to fix ...

C++ msvcp90d.dll Access violation exception

I was writing a c++/cli wrapper for a native c++ application, and when I finished writing code, it builds so well. The native c++ is built to a static library (.lib) file, and I referenced it in my c++/cli wrapper, then I wrote a c# console application to test the wrapper. However, the debugger can be launched.If I commented the lines w...

How-To: check if array<T>^ == nullptr ? C++ / CLI

Hi all, I've done a pretty basic class in C++/CLI using generics. How can I check if the generic array^ equals nullptr? generic<class T> where T: IGenericContainable public ref class FIBEXGenericContainer abstract : AbstractFIBEXNode { public: property array<T>^ Children; public: property T default[String^] { T ...

Some question to distinguish c++.net cli Managed C++

Is C++.Net (not Visual C++), CLI, Managed C++ is the same ? Is they need a framework to run Managed C++ is CLI or MFC ? ...

What scripting langugae has both ec2 library & easy to use ncurses api?

Hi, I'm looking to write a cli replacement for elasticfox. Would be nice to use python / ruby / bash or something alike. This is a side project to make our Ubuntu environment a bit more fun, so as much abstraction as possible - I'm loving it :). Any tips? Thanks, Maxim. ...

What is the difference between C# & CLI when it comes in with value types and constructors?

I read recently that the C# and CLI standards define different ways to handle value types and constructors. According to the CLI specification value types can't have parameterless constructors, whereas in the C# specification value types have a default parameterless constructor. If, according to the CLI specification, you need to create...

Python: Completer for path to dir/file

Hello, I'm writing a CLI app and there is a place, where user should to write path to using dir. Of couse, I can read it with raw_input(), but standart Completer can't autocomplete path by TAB. So is there any solution in python (or somewhere else) or should I to write my own Completer? ...

visual selection in bash / cli

Is there a way to make bash use visual selections for text replacement? Standard text input conventions don't work: If you press Shift+Left Arrow, the character to the left should be visually selected If you press Ctrl+Left Arrow, the cursor should move to the beginning of the previous word If you press Shift+Ctrl+Left Arrow, the wo...

What is the difference between C# , .NET and CLI?

What is the difference between C# , .NET and CLI? ...

Remote debugging with netbeans and xdebug on windows CLI.

Hello, I hope someone can help, I'm having some difficulty using remote debugging with netbeans on the windows 7 (professional) CLI. I'll outline the process I have gone through thus far: 1) Set up php.ini: xdebug.remote_enable=On; xdebug.remote_host=localhost; xdebug.remote_port=9000; xdebug.remote_handler="dbgp"; xdebug.remote_mod...

Python Console Name Customization

Usually the Python console looks like this: >>> command Is there a way to make it look like: SomeText>>> command ...

CLI for Eclipse RCP application

I am building an Eclipse RCP application and want to add a command line interface into one of the tabular views. What would be the best approach to accomplish this? ...

Using php oncli few questions ~ using XAMPP

Hi, Attempting to expand my knowledge by using PHP on the Command Line. Currently I have a default installation of XAMPP, and have set up my Environment Variable. I've been able to execute simple scripts like: <?php echo 'hello world!'; ?> Questions ~ Where do I store the scripts I am using? Currently I am doing: C:\Users\Ross>ph...

Windows cli tool to monitor semaphores?

In Windows, is there a tool to view semaphores from the command line? SysInternals "Process Explorer" does a great job from a gui, and the SysInternals "handle.exe" view handles from the command line, but I've not found anything to enumerate semaphores from the command line? ...

require_once missing doctrine zend framework

I'm integrating doctrine with Zend Framework. I've hit an error thrown from cli. It seems Zend_Application_Bootstrap_Bootstrap does not have a require_once for Zend_Application_Bootstrap_BootstrapAbstract. Has anyone hit this? my cli-config.php <?php $classLoader = new \Doctrine\Common\ClassLoader('App', __DIR__ . "/../application/mod...

PHP CLI: How to read a single character of input from the TTY (without waiting for the enter key)?

I want to read a single character at-a-time from the command line in PHP, however it seems as though there is some kind of input buffering from somewhere preventing this. Consider this code: #!/usr/bin/php <?php echo "input# "; while ($c = fread(STDIN, 1)) { echo "Read from STDIN: " . $c . "\ninput# "; } ?> Typing in "foo" as the...

Using nohup or setsid in PHP as Fast CGI

I'm trying to do a potentially long background process in response to an incoming AJAX request, but using nohup or setsid via shell_exec causes the server to fork bomb. We use suexec and FastCGI, and when it bombs it took the entire server to a crawl. shell_exec("nohup /home/me/myscript.php"); The script doesn't do anything lengthy ri...

Flash Command Line Interface

I am looking to build a Flash/ActionScript 2 Command Line interface simulator which acts like a Unix/Dos CLI. Does anyone know how to do this, or have a good resource like a tutorial about it. I've been scouring the web for a solution, but only seem to be able to find a tutorial about the effect, not actually having it interactive. A ...

How to create a script for the command line in PHP with Zend Framework?

I need to create a script that will run on the command line using PHP and I want to take advantage of the ZF and the models (classes) I have written using it. How do I do this as elegantly as possible? ...