console

Tell C++ console to wait

What is the method to tell the console to wait for x seconds. Is there a built in method or must I make one. ...

Running a process in pythonw with Popen without a console

I have a program with a GUI that runs an external program through a Popen call: p = subprocess.Popen("<commands>" , stdout=subprocess.PIPE , stderr=subprocess.PIPE , cwd=os.getcwd()) p.communicate() But a console pops up, regardless of what I do (I've also tried passing it NUL for the file handle). Is there any way to do that without ...

Execute a shell command from a .net application

I need to execute a shell command from my .NET app, not unlike os.execute(a little ways down on that page) in Lua. However with a cursory search i couldn't find anything, how do i do it? ...

Make win C# console application to show posibile command when user hit TAB

I am developing console application in C# with lot of parameters and sometime I as developer can't remember combination of parameters to call application in right way, I can't even and think how users will do it. So I asking You is there and what will be the proper (scholastic) way to make my application act like those UNIX OS. You know ...

accessing data from the model using script/console (Ruby on Rails)

I'm looking to write a Ruby script which I can load into the Rails Console which will access data from the models I have created. I created a model called student using the following command and populated it with data: script/generate scaffold student given_name:string middle_name:string family_name:string date_of_birth:date grade_point...

Is there an API to GlassFish Admin Console?

Hi, we just inherited the development of a web application that uses GlassFish. The setup instructions we got have all these manual steps to setup connection pool, JDBC resource and JMS. I'm wondering if there is an API that could allow us to do all this work automatically (e.g. with a script)? Thanks! ...

Remotely pass messages to c# console app

I need to be able to send a string message and receive a string response from a console app running within our organization. I want to pass simple strings back and forth from a remote IP address. What's the best way to do this? My first thought is to listen on a socket, but that seems like overkill. I've looked a little into becoming a W...

Print function calls with a variable delay / Python

The question is, how can I configure the Python debugger to show me in the console what functions are being called? In order not to see everything flash by, a delay between the function calls would be needed. ...

How to use console output in an ASP.NET environment?

I would like to print some traces during the requests processing. But when I make Console.WriteLine("something") in this environment, nothing is shown. What is missing, what do I need to do in order to use console to print these traces? Thanks ...

Correct way to write console applications on GNU/Linux with C++

I really like the console and got recently hooked on programming console applications using nCurses mainly in conjunction with the C programming language. Unfortunately i think the ncurses API is totally borked and very hard to use, and the C++ bindings are undocumented. So my question is, what is THE API to use for C++ console applic...

Running jQuery call in Firebug Console

Sorry, new to Firebug. I really find being able to run javascript in the Firebug console window helpful. However, I don't seem to be able to run jQuery calls in the console. For example, in my executing javascript in my page, I may make the call to get a value: jQuery('#an_element_value').text() However, I cannot execute this in...

Strange Console MoveBufferArea IOException

Hi, I was building a "reverse console" (so that the written lines would append themselves on the top instead of the bottom) as I stumbled upon a very strange behavior of the Console.MoveBufferArea method: static void Main() { for (var _linesWritten = 0; _linesWritten < 1000; _linesWritten++) { var _h...

How can I show Perl console output in a GUI?

I have several simple Perl programs writing to the standard output, but this has some problems : some of my users are scared by a console my users works on Windows, so my program output is displayed on a cmd console, so I cannot control the way it is displayed (colors and terminal size), and worse, the console is not resizeable (at lea...

Java: Easier pretty printing?

At the end of my computations, I print results: System.out.println("\nTree\t\tOdds of being by the sought author"); for (ParseTree pt : testTrees) { conditionalProbs = reg.classify(pt.features()); System.out.printf("%s\t\t%f", pt.toString(), conditionalProbs[1]); System.out.println(); } This produces, for instance: Tree Odds of...

Java: System.out.println and System.err.println out of order

My System.out.println() and System.err.println() calls aren't being printed to the console in the order I make them. public static void main(String[] args) { for (int i = 0; i < 5; i++) { System.out.println("out"); System.err.println("err"); } } This produces: out out out out out err err err err err Instead of alternating out...

Python 2.6: reading data from a Windows Console application. (os.system?)

I have a Windows console application that returns some text. I want to read that text in a Python script. I have tried reading it by using os.system, but it is not working properly. import os foo = os.system('test.exe') Assuming that test.exe returns "bar", I want the variable foo to be set to "bar". But what happens is, it prints "b...

SMTP Mail client settings in app.config file C#

I've put mail settings in app.config and can successfully pull them into a mailSettingsSectionGroup object. However, I'm not sure how to send a message using these settings. This is what I have so far: System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); MailSettingsS...

[C#] Multiple Consoles at Once

Is there an easy way to do this? I am testing my networking application using just the console for now. What would be nice is to have multiple consoles from one project and one press of the "Debug Now" menu item. I could, like I have in the past, use multiple projects but that's seems unwieldy. Ideally I could launch multiple console i...

C++ - Hold the console window open?

Hi, my question is super simple, but I'm transitioning from c# to c++, and I was wondering what command holds the console window open in C++? I know in C#, the most basic way is: Console.ReadLine(); Or if you want to let the user press any key, its: Console.ReadKey(true); How do you do this in c++? The only reason I ask this simpl...

Process.WaitForExit() on Console vs Windows Forms

I have a console app and a win forms app that both need to call out to a remote server for some data, they make a call to the command line part of Putty, plink.exe, to run a remote command over SSH. I created a tiny class library for both to share, running the following: public static string RunCommand(string command, string arguments)...