command-line

PHP Command Line running, zend framework set up problem

Hi, Im trying to learn how to set up a Zend framework web application from scratch. Ive been using Magento and I understand how powerful Zend is, but im over my head it seems like. So I bought a book, developing web applications with Zend 1.8 by Keith Pope, and I cant even follow past the first chapter. The thing that is confusing the ...

C# and T-SQL command-line Utility

Group, Part 1: I'm currently working on a command line utility that can take args and update a local database. The only issue I have is once i established a "Data connection"..how can I use those args for queries and searches. For example: ~//arrInput.exe "parm1" "pram2" "pram3" Part 2: I would like to take in command line args and ...

GIT core.editor setup on windows along w application PATH reference

Hey all so i wehnt ahead and opened up my .gitconfig file and manually input the [core] editor = 'C:/Program Files/Notepad++/notepad++.exe' which would allow me to execute command: (im trying to setup my .gitignore list) "C:/Program Files/Notepad++/notepad++.exe" .gitignore im JUSt not interested in typing this out every time t...

.Net Process keep command window open

right now I am working on a tool that does a lot of work via the Process object through the command line. So there are times when I want the command window to not show up and times when I want it to stay open so that the user can see what happened, possibly respond with the appropriate input. Dim pro As New Process pro.StartInf...

How to read a multiple line input from command line in c or C++?

For Example: If I need to read a multiple line input like(and I dont know How many lines would be there!!): 1 20 2 31 3 41 I am using something like int main() { string line; while(getline(cin,line) != NULL) { // some code // some code } } Now the program never stops- i.e always it expects some inpu...

How to "serialize" and "deserialize" command line arguments to/from string?

I call my script: $ ./script 'a!#*`*& ^$' "sdf sdf\"qw sdsdf" 1 -- 2 3 It gets arguments: 1: a!#*`*& ^$ 2: sdf sdf"qw sdsdf 3: 1 4: -- 5: 2 6: 3 If I need to call something with the same arguments locally, I do this: someprogram "$@" But how can I put all that array to a string (to store in file or in environment variable or pas...

Sane(r) way to get character-encoding of the CLI in Mac OS X?

Hi all! I was writing a CLI-Tool for Mac OS X (10.5+) that has to deal with command-line arguments which are very likely to contain non-ASCII characters. For further processing, I convert these arguments using +[NSString stringWithCString:encoding:]. My problem is, that I couldn't find good information on how to determine the characte...

Changing to remove path from Env Variable PATH

Hi, I'm trying to use a command line implementation to change the Path env var to remove a path so I don't have to manually removed it on a bunch of machines. I have found this, which I can't seem to get it to work: %Path:str1=str2% str1 is the path and str2 is null, which I'm not sure how to set it to null on the command line. If the...

Xcode : UNIX Command-Line Tools Installation

I'm trying to install MacPorts but it needs command-line support to be installed with Xcode (which is an option during installation) is there any way I could install UNIX command line support with Xcode without re-installing Xcode? ...

Finding the number of files in a directory for all directories in pwd

Hello all, I am trying to list all directories and place its number of files next to it. I can find the total number of files ls -lR | grep .*.mp3 | wc -l. But how can I get an output like this: dir1 34 dir2 15 dir3 2 ... I don't mind writing to a text file or CSV to get this information if its not possible to get it on screen. ...

How can I use –X:Frames in Ironpython?

Visual Studio 2010 + Ironpython for .net4 I want to use numpy in ironpython, and they said I must use frames support. So, I should running ipy with -X:Frames or -X:FullFrames on the command line. But, I have two questions: 1.how can i use -X:Frames or -X:FullFrames in Ironpython Interactive console? 2.If I use C# 4 to load py which ...

Looking for any good(and free) cross-platform CLI parsing library for a command line utility

I am currently working on a CLI utility which I feel can be improved a lot by adding a framework. Basically the utility revolves around lots of command line syntax AND parsing the output. Currently the code is scattered all around with lots of individual inhouse run() and readFromRunOutput() calls with hardcoded CLI arguments. For exa...

Starting multiple instances of a python script at once from linux command line

Hello, I'd like to start a piece of python script a thousand times! instead of trying to start them one-by-one how can I do that from linux command line? Right now, I am doing it like this: nohup python test.py & nohup python test.py & nohup python test.py & nohup python test.py & nohup python test.py & ... Thanks in advance. ...

Ruby command line MVC framework?

I'm looking to write an app for the shell, *nix mostly. And I'm currently in love with Ruby, especially the 'rails way'. So if there was a framework that applied rails like concepts to the commandline in ruby then that would be really fantastic. I'v allready looked into SimpleCommand and Hirb, nothing quite what I was looking for. To ...

Java.lang.NoClassDefFoundError java.lang.StringBuilder from code using java.lang.StringBuffer

Hi, I know there are plenty of questions regarding this error, but I haven't found it easy to find one exactly like mine. Here goes. I have a pretty small application that writes DB data to a csv file and then uploads it to a server. I have it running on my local box out of eclipse which is great, but the final version needs to be run...

utility to create/update license information

Is there a utility to manage license information? Mostly this would just be a minor convenience, but I'd like to be able to do something like $ licentious -L GPL -s git -m "A utility for managing license information" to create a file named (by default) COPYING in the current directory, using my name and email address as configured in ...

testing command line utilities

I'm looking for a way to run tests on command-line utilities written in bash, or any other language. I'd like to find a testing framework that would have statements like setup: command = 'do_awesome_thing' filename = 'testfile' args = ['--with', 'extra_win', '--file', filename] run_command command args test_output_was_...

Remove all files from a month but last one

Every day we run an backup job. This job creates a new file in format yyyyMMdd.7z and now we need to cleanup our backup storage automatically. Our backup police says that we need to keep files from last 5 days, and last backup of each month. First step is easy since I have current day. But how I can keep the last of each month? ...

How do I access the emulator control line in Android?

I'm trying to change the time zone on my Android emulator. I'm using Eclipse on a Windows 7 machine. To do this it says to enter some commands in the command line, but doesn't say how to access the command line! So how do I access the command line in Windows 7 using Eclipse? ...

Script to find a folder in registry

HI Guys, I am new to scripting. I want to write a script to find whether that folder exists in registry or not. ...