command-line

How can I get python in the command prompt on Windows?

I have just installed Python on my Windows 7. I thought that after that I will be able to run python on the command prompt but it is not the case. After the installation I also found out that I can run the python command shell. This is nice. But what should I do if I want to save my program in a file and then I want to run this program (...

How to make a user friendly start of a Python program?

I have a Python program (GUI application). I can run this program from the command prompt on Windows (command line on Linux). But it can be too complicated for users. Is there an easy way to initiate a start of the program with a click (double click) on a pictogram (a small image on the desktop)? ...

'reg' is not recognized as an internal or external command, operable program or batch file.

I'm running a batch file command on a server which is using reg query to find out the procesor_architecture of the machine(AMD64 or x86). And I'm getting this error, does anyone know what could be the issue. And what all things have to be checked first before running this command on that specific server. This is the command: reg quer...

Mage.exe deployment problems.

I have a config file that needs changed on a per-server basis, so that once a server has our software installed on it, the config file for a client installer is set up to match that server's particular settings, and then copied to a public folder on the web for deployment. Since I'm changing the config file, I also have to rebuild the ...

Scala: Best way to parse command-line parameters (CLI)?

What's the best way to parse command-line parameters in Scala? I personally prefer something lightweight that does not require external jar. Related: Java library for parsing command-line parameters? What parameter parser libraries are there for C++? Best way to parse command line arguments in C# ...

Command line parameters or configuration file?

I'm developing a tool that will perform several types of analysis, and each analysis can have different levels of thoroughness. This app will have a fair amount of options to be given before it starts. I started implementing this using a configuration file, since the number of types of analysis specified were little. As the number of opt...

How to install or attach Sql Server Database using command line ?

I need to deploy a Sql Server Express 2008 database in unattended installation using command line or AutoIt, and I need to : 1.- Set sa password. 2.- Disable built-in\Administrators account to deny login. 3.- Attach a database with all users accounts enabled. Thx ...

Running a Zend Framework action from command line

I would like to run a Zend Framework action to generate some files, from command line. Is this possible and how much change would I need to make to my existing Web project that is using ZF? Thanks! ...

Programmatically build WXS into MSI

I will try to make this as clear as I can, but if you have questions or don't completely understand let me know. I have a program that creates a WXS (WiX source code file) from scratch, and tests it to make sure it is valid. I would like the next automatic step to be the actual building of the WXS using Visual Studio (I am working with...

How can I find out what these files or processes do (linux)

When I go onto a *nix system and look as ps -A or -e or top I get a large number of processes that are running. For example. init migration/0 ksoftirqd/0 events/0 khelper kacpid kblockd/0 khubd pdflush pdflush kswapd0 aio/0 kseriod scsi_eh_0 kjournald udevd kauditd kjournald kjournald kjournald kjournald kjournald klogd portmap rpc.idm...

passing contents to EDITOR and getting the results after quit (e.g. git/svn commit)

I would like to write a command line tool that passes some formatted text to whatever EDITOR the user has set in the environment and then reading the contents back. How do tools like svn commit and git commit handle this behavior? Is there a standard pattern for doing this? ...

How do I make a command line program that takes arguments?

How can I make a command line, so I can execute my program on Windows with some parameters... For example: C:/Program/App.exe -safemode ...

How do I checkin to local copy AND svn:externals subdirectories in one commit?

We have an svn project that also has several plugins in vendor/plugins - all pulled in via svn:externals. I have a commit that spans both the main project and several of these plugins all at once. When I do an svn st it lists all my changed files across all the correct sub directories, but when I try to do an svn ci it only shows files...

How to discover command line options (if any) for an undocumented executable of unknown origin?

Take an undocumented executable of unknown origin. Trying /?, -h, --help from the command line yields nothing. Is it possible to discover if the executable supports any command line options by looking inside the executable? Possibly reverse engineering? What would be the best way of doing this? I'm talking about a Windows executable, bu...

How to automatically load a project when starting Delphi

I want to specify a project to be opened when I launch Delphi(D2010). Is there a command-line parameter to pass to bds.exe, like the -r option allowing to load a specific Registry Setting, where I could pass the name of the project I want to open when launching bds.exe? The only options I know of are: -ns "no splash" -n...

Writing GUI frontend for commandline application in Mac OS X

Hello, I am wondering if there is a source of information on how to develop a GUI frontend application for a commandline one in Mac OS X in, but not necessarily, Xcode? Specifically, I would love a GUI frontend that lets me specify arguments to pass to the commandline program. Thank you very much. ...

How to limit the subset of git commands that zsh will auto-complete (with tab)?

I have a combination of: autoload -Uz compinit compinit and autoload -Uz vcs_info It actually allows for a great amount of integration between git and zsh's tab completion. Too much in fact. How do I limit the set of commands, so that git che(TAB) will expand to checkout, and not to a choice between checkout and checkout-index? ...

What does this sentence mean?

Your Java solution should have a single command-line argument representing the number of candidates. I am having trouble understanding the homework question. ...

svn history via command line

I am trying to write a utility in python to get me all the files that have been modified for a specific branch....i don't care about the date or who commited. how would I go about doing this? I can handle the python part, I just can't find a command in svn to give me the output. ...

sqlcmd from command-line with sql authentication

SQLCMD uses windows authentication by default. According to the MSDN documentation, you can change it by adding a -U parameter to the command and then the user name. The problem is with the password. Is there any way to access the sql server if the password is blank? sqlcmd -U admin password: Whenever I try this and just press ente...