command-line

Mysql for python

I had trouble installing a local installation of mysql, so I have a connection to a remote mysql database via an IP tunnel, I connect to it via typing localhost in perl and python scripts. Something weird is happening and I want to check the connection from the command line rather than the script. Is there a BASH command line that I ca...

What does the MaxOccurs property of Mono.GetOptions.OptionAttribute do?

Mono Documentation The documentation is missing here. What does it do? ...

Force the culture of a console command

I want to execute a msbuild script using a specific culture (en-US) as one of the tasks is trying to call a web service using aDateTime.ToShortDateString() as a parameter, and my current culture is uncompatible with the server's (english) format. How to do it without altering my regional settings ? ...

How to remove a user from all rosters in Ejabberd

Hi, I want to delete a chat account and at the same time : Delete his roster Delete him from all of his friends rosters How can i do this? I have tried the various options of ejabberdctl. I can unregister a user, and even purge his roster, but i cant find a way to remove him from other rosters. PS : All my users are currently on o...

How to call Matlab functions from linux command line ?

Basically I have a m file which looks like function Z=myfunc() % do some calculations dlmwrite('result.out',Z,','); end What I want is just execute it from command line without getting into Matlab. I tried several options (-nodisplay -nodesktop -nojvm -r ....), none of them worked. I end up getting into Matlab and have to type "qui...

Does a command-line client exist for Microsoft Jet database engine?

Is there such a thing as a shell-based command-line client for Microsoft's Jet database engine? Something similar to SQLite 3.x (sqlite3.exe) for SQLite. ...

Long commands split over multiple lines in Windows with quotes

Using the caret to split lines, dir ^ *.bat ^ /w works as expected, but dir ^ "*.bat" ^ won't let me enter the "/w". I guess the caret does not work after a double quote. Is this a bug? Or if this is a feature, what is it's use and how can I get around it? ...

Starting up a screen (unix command) + running a command  in 1 command?

Hello. Was wondering how I can start up a command such as: while :; do ./myCommand; done; But instead of doing the usual screen -S nameOfMyScreen Then the command while :; do ./myCommand; done; Then detach the screen ^a ^d (Control "a" the control "d" I would like it to start and detach. Thanks! ...

get all the commits done by me in the last 5 days in git

I am not very good at sed or awk. Every friday I like to see all the commits done by me in the last 5 days to find out what work I did. At this time the only command I know of is git log --since=5.days ...

How do I interact with a MS Exchange calendar from a Unix command line?

I want to write a bot that will automatically watch a MS exchange account's calendar and accept and log any invitations. The rest of the code will be in Ruby, so I'd prefer that, but I'm happy to use any POSIX tool -- a C program, a Perl script, etc. I've looked around for Unix client information, but all I found were email clients (e.g...

MSBuild.exe not accepting either /p:DefineConstants nor /p:PreprocessorDefinitions

I've been through quite a number of articles on stack overflow that answered the question "How do I pass preprocessor definitions to the compiler from the MSBuild command line," and they all responded with some variation of: MSBuild.exe /p:DefineConstants=THING_TO_BE_DEFINED I have tried every variation that I could come up with: MSB...

R Script: Determine whether the script is run in the GUI or from command line

Is it possible to determine - from within the script - whether the script is running in the R-GUI (specifically R.app on OS X) or whether it has been called from Terminal/command line (i.e. R --vanilla -f script.R)? If so, how is this possible? I'm asking because I have a script that can run parallelized (using the doMC library), which ...

TortoiseSVN command line diff

The command I'm using is: TortoiseProc /command:diff /path:myfile.txt It will open up the diff TortoiseSVN window, but it will only compare the working copy with the HEAD copy. What I want is to compare the working copy with the latest version in the Repo that is different. Basically, the same as running the right-click->TortoiseSVN-...

Call linux command from a html page in Firefox or from Firefox extension

Is there any possibily that I can have a html page with button, that when the user click it, it will run linux command on the local machine? If it is not possible, then is it possible to have a firefox extension that monitor a url, and if the url appear, the extension itself will run a linux command on the local machine? The html page ...

Install adobe air application while preserving the file timestamp (thru command line)

i have a app.air file which has the files with different timestamp inside it, when i install it, it expands the .air file and reset all the timestamp of its files. is there a way to install the application and NOT change the timestamp? preferably thru a command line way too. Also, what exactly does the installation process do to the .a...

How to save a document in ms word 2003 using command prompt?

Please help, How to save a document in ms word 2003 using command prompt? The only thing I know about cmd is making a directory(mkdir), open ms word(win word), and hide rar files to jpeg files. And moving files from 1 directory to another. ...

Swapping characters within a text file

I have a 200 Mb text file and for every line need to swap the 3rd and 4th characters with the 6th and 7th characters, so that 1234567890 would become 1267534890 I am using Windows XP with PowerShell installed. Also installed is Cygwin and UnxUtils so have access to versions of cut, sed, awk, grep, etc. There is no delimiter in the fi...

Command to run only one specific test plugin defined in Maven

I have a Maven POM file with a plugin that runs on the test phase. What command line arguments do I have to pass mvn in order to execute just that plugin rather than all of the plugins for that phase? I am also trying to execute a specific ant-run plugin, that looks like the following: <plugin> <groupId>org.apache.maven.p...

How do I force IE to open a new Browser on custom hotkey?

I'm using AutoHotKey which is a program that lets me define my own hot keys. I have a hot key to open a link in IE. When I run the hot key command again the same window opens in the same browswer. I would like it to open in a new browser. I'm using "Run www.google.com", for example. Thanks. ...

What should the assembly names be for an application providing both a GUI and command-line interface?

I've written a few desktop applications in .NET that provide both a front-end GUI for normal use as well as a command-line interface for other needs (e.g. extending, scheduling, automating, advanced usage, etc). What is the best practice for naming the two executables, since they are built to the same directory? I've seen or done some of...