command-line

What's a good alternative Windows console?

UPDATE (solution) Months later someone turned me on to an awesome solution to this. If you install Git for Windows, it comes with this console app called Git Bash that does exactly what I descibed. I gather that it is derived from MinGW. It's easy and convenient and gives you all the Unix bash command line conveniences. Tab-completion w...

How do I build project files and packages for Borland C++ Builder 5 from the command line?

How do I build Borland C++ project files (bpr) and package files (bpk) from the command line? Project groups (bpg) are apparently make files and can be compile with make. But bpks and bprs are xml based and the Export to Makefile won't compile with make. If I put a project in a bpg, make can't seem to find any of the files specified in...

Commandline arguments not working - Skips over them completely.

Alright, I'm trying to get arguments to work properly with a small test application. My code is below. I'm not too experienced at C++, so I'm not sure why when I launch test with -print (or --print) it automatically states "Not a valid option" and then finishes up. #include <iostream> int main(int argc, char* argv[]) { int option; ...

How to create Windows EventLog source from command line?

I'm creating an ASP.NET application that will log some stuff to Windows EventLog. To do this an event source has to be created first. This requires administrative priviledges so I cannot do it in the ASP.NET app. Is there an existing command-line application that is bundled with Windows that can create an event log source, or must I rol...

Change command to one that does not fork and use up resources

Hello all, I have the following command which deletes files that are one day old and that are of mp3 file type. find /home/get/public_html/audio -daystart -maxdepth 1 -mtime +1 -type f -name "*.mp3" |xargs rm -f The problem with this is when i run it, it sometimes says "fork": resource xargs not available. Does this mean, t...

decrypting pdf protected by aes-256bit using the right password

Is there any way to decrypting a pdf protected by an aes-256 bit key? I have the correct password and I need a command-line tool (or library - perhaps in python :P ) for decrypting the file and then doing some operation over it. The best thing could be if the file could be saved decrypted, then I elaborate it and then I can remove it.....

What's an easy way to read random line from a file in Unix command line?

What's an easy way to read random line from a file in Unix command line? ...

How can I show file sizes with commas when getting a directory listing with 'ls -l'?

You can do 'ls -l' to get a detailed directory listing like this: -rw-rw-rw- 1 alice themonkeys 1159995999 2008-08-20 07:01 foo.log -rw-rw-rw- 1 bob bob 244251992 2008-08-20 05:30 bar.txt But notice how you have to slide your finger along the screen to figure out the order of magnitude of those file sizes. What's a good w...

Uninstalling an MSI file from the command line without using msiexec

msiexec is a command prompt software that installs an msi program. But I have found that you can install an msi file from the command line by just typing in the name of the msi file on the command line. But in order to uninstall the msi file, it seems you have to call the msiexec program and give it an /x or /uninstall. Does anyone kn...

Executing command line programs from within python

I'm building a web application that will is going to manipulate (pad, mix, merge etc) sound files and I've found that sox does exactly what I want. Sox is a linux command line program and I'm feeling a little uncomfortable with having the python web app starting new sox processes on my server on a per request basis. Example: import os...

Which numerical values do the F-Keys ( F[1-12]) and the Arrow-keys have?

I'd like to write an application in C which uses arrow-keys to navigate and F-keys for other functions, such as saving to a file, language selection, etc. Propably the values depend on the platform, so how could I find out which values the keys have? If they don't, or if you know them, I don't have to know how to find out;) Edit: My p...

compiling processing sketchs from the commandline?

I'm a blind student who has to use processing in a programming class. Is it possible with the current 1.01 version to compile sketch files from the commandline and view any errors? Update This link helped me fix my problems, I'll write a blog post about it when I have time. http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_co...

Replacing a line in a csv file?

I have a set of 10 CSV files, which normally have a an entry of this kind a,b,c,d d,e,f,g Now due to some error entries in this file have become of this kind a,b,c,d d,e,f,g ,,, h,i,j,k Now I want to remove the line with only commas in all the files. These files are on a Linux filesystem. Any command that you recommend that can r...

Get Exitcodes from WindowsForms Application in command window

Hi, I'm starting a Windows Forms application from the command promt and I need to get the exit codes that the windows forms application generates. The command promt starts the application and returns immediatly. But the application executes in the background. Is there a way to get the Exit codes? Kind Regards Christian. ...

How can I print over the current line in a command line application?

On Unix, I can either use \r (carriage return) or \b (backspace) to print over text already visible in the shell (i.e. overwrite the current line again). Can I achieve the same effect in a Windows command line from a Python script? I tried the curses module but it doesn't seem to be available on Windows. ...

How can I hide the python.exe window in a pyqt app when running on Windows?

Surely this is possible? I have been hunting through pyqt tutorials and documentation but cannt find the answer to it. Probably I just need to phrase my search query differently. [Edit] Thanks PEZ for the answer - more details including use of the .pyw extension in Python Programming on Win32 chapter 20 ...

Dump a mysql database to a plaintext (CSV) backup from the command line.

I'd like to avoid mysqldump since that outputs in a form that is only convenient for mysql to read. CSV seems more universal (one file per table is fine). But if there are advantages to mysqldump, I'm all ears. Also, I'd like something I can run from the command line (linux). If that's a mysql script, pointers to how to make such a t...

Platform Builder and C#

Platform Builder is a tool for building a Windows CE Operating system on your computer and then loading it on a Windows CE device. All this is done through Platform Builder. And I do it all through the Microsoft Visual Stuido Development Environment (IDE). I want to automate the process of using the Platform Builder. So far, I only k...

Using ShellExecuteEx and capturing standard in/out/err

I'm using ShellExecuteEx to execute a command in C. Is there a way to use ShellExecuteEx and capture standard in/out/err? Note: I don't want to use CreateProcess. ...

an htop-like tool to display disk activity in linux

I am looking for a linux command-line tool that would report the disk IO activity. Something similar to htop would be really cool.Has someone heard of something like that? Thanks! EDIT: for the vote down:about not being programming -related. I happen to need to check if my code is actually behaving as I expect which involves looking at...