Python's subprocess.Popen() results differ from command line?
Using Cygwin on Windows 7 x32, in a VS solution directory, the
find command produces correct results:
$ find . -iname "*.sln"
but the same command with Python's
subprocess.Popen() seems to be matching on
>>> import subprocess
>>> print subprocess.Popen(['find', '.', '-iname', '"*.sln"'],
... stdout=subprocess.PIPE, shell=True).communicate()
What's wrong with my
I would like to use the ReSharper Adjust Namespaces feature on a number of solutions. I would like to automate this process by creating a command line application that uses the ReSharper API. I looked
i'm looking for ways to sort a file of hex numbers like C3 A2 3F From the command line linux solutions are welcome, though i'll be using windows and cygwin or gnuwin32.
I have created a WPF application which I would like to run from the command line, so I can schedule this command to be executed using Windows Task Scheduler. For example, using a command line: start
I wonder how good programmers get command line parameters in Python? What if there are a lot of parameters? def main(): type = None if len(sys.argv) == 1 else sys.argv date = None if len(sys.argv)
I'm writing a script to trigger several VSTS load tests in a row using mstest.exe. I notice there's a /resultsfile option that lets me specify where the test results are stored, but it looks like this
Does anyone know of a good tool to use from the shell to query the database and get intelligible results? On the command line from SSH I want to query the database using mysql but find the results pre
could someone give me a hint, howto serve the current directory from command line with ruby? it would be great, if i can have some system wide configuration (e.g. mime-types) and simply launch it from
I used Gimp to export a PNG to another without color values from transparent pixels. Is there ay way to do the same from the command line? I'm going to use this script from a php. The option in Gimp U
Anyone knows how to compile a vb6 webclass dll from a command line? I am trying to build a tool for automating version building, but it fails with an 'Compile Error in File '[file name]', Line xxxx :
I've spent the last week developing a Powershell script. It now works ok when I start it from a Powershell window. However, I need the script to be called from TFS build. I've tried using the syntax P
I'm hoping someone can explain why Directory.GetCurrentDirectory() returns different results based on how I pass my command line arguments to the application (running with args vs dragging a folder ov
I'm attempting to run the maven release plugin from the command line in batch mode for a multi-module project that has dependences that are deployed to the maven repository with a classifier. The rel
So i have figured out how to run Sikuli X from command line using: @start C:\SikuliX\runIDE.cmd -r C:\Users\Robert\Documents\Automation\test.sikuli exit My problem is when it runs it opens up another
Ok so i was wondering how i would go about calling a perl subroutine from the command line. So if my program is Called test, and the subroutine is called fields i would like to call it from the comman
I have a tiny actionscript project consisting of two files, call them foo.as and bar.as. For reasons I won't go into, I really really want to build the .SWF from the command line, without setting up
Is it possible to emulate the screen size (for Chrome) by running chrome with some command line arguments (on Windows)? Thanks, Khachatur
How can I run a php script from the command line using the php interpretor which is used to parse web scripts. More detail - I have a phpinfo.php file which if accessed from the web shows that gearman
I'd like to know if it's possible from windows command line to list ALL environment variables. Something equivalent to powershell gci env: (or ls env: or dir env:).
Is it possible to load data from a json file (not just csv) using the Big Query command line tool? I am able to load a simple json file using the GUI, however, the command line is assuming a csv, and
Is there a way to emit dbus signal from command line using dbus-send or something else ? Regards, Levon
I want to execute a complex command-line command when I click a cell in excel, a hyperlink cell. I've tried everything but I can't get it to work. You can right-click and choose Hyperlink but the dia
As this post points out you can install Vimballs using the normal: vim somevimball.vba :so % :q But if you want to install a from the command line how do you do it? I ran a 'man vim' and it seems lik
When I run the following command in command line powershell.exe Import-Module ActiveDirectory;New-ADUser -name rr -path OU=Test,DC=Example,DC=com I get the error below: New-ADUser : Cannot conve
When running the Fitnesse tests via command Line I am getting a ClassNotFound Exception caused by Java.lang.ClassNotFoundException:fitnesse.runner.testRunner could not find the main class:fitnesse.ru
Is there a Microsoft tool to get the assembly version of a DLL file from a command line? (I know that I can code my own tool.)
I'm trying to understand how works the option -classpath when compiling from command line. I try from parent of mydirectory: javac -cp mydirectory/subdir Hello.java But compiler says: javac: no sou
I'd like to benchmark a PHP script, but this would equally apply to anything that can be run from the command line. Using bash is there a simple way to benchmark a script, i.e. run a command multiple
Does IDEA provide a command line executable to edit some settings, install/uninstall plugins, etc without actually starting the IDE and clicking around? For example, it is possible to install new plug
I am an experienced programmer, but haven't used Java in years - mostly C# - and used an IDE in the past. I'm trying to compile some code from the command line on my Mac, but can't get my test file to
Is there a way to send a osql query from the command line that returns results that do not include the big long line of dash characters that represent the column width? Here is the sample code I am wo
How to start an Android application from the command line? There are similar question asked, but I can not find good any answers.
I need a module to accept the following timestamp from command line in Perl. 2010/11/29 09:39:57 I have used the Getopt::Long module to accept the command line options. But it doesn't accept the fu
I have a program (in C) that runs in the command line, and I am looking to have it accept strings of arbitrary length from users. If I were programming in C++, I would probably use the getline() funct
How do I call a python program from the command line? Where the program should be? What's the difference between the python GUI and the command line?
I am trying to get three arguments from command line: -o (for outputfile) -k (number of clusters) -l (data to be clustered) So i wrote this. def get_input(): print 'ARGV :', sys.argv[1:] options, rem
While running Unit Tests from command line (necessary for Jenkins) used to work until Xcode 4.4.1 with this hack, it does not seem to work anymore with Xcode 4.5. Now I get the following error message
Normally to use Ruby libraries from command line I can do something like: ruby -rfastercsv -e 'code' Unfortunately this doesn't work with rubygems, as they're not enabled by default, and whatever rub
I am trying to read 12|11|13 from command line from my application. I get error 11 is not recognozed as an internal command while reading this string. I am OK if I can read complete string or indivi
How do I run a Junit 4.8.1 Test suite from command line ? Also I want to use the categories introduces with JUnit 4.8 , is there a way where I can specify from command line the category which I want t
Basically I have an m file which looks like function Z=myfunc() % Do some calculations dlmwrite('result.out',Z,','); end I just want to execute it from the command line without getting into MATLAB. I
I want to build the android project from command line. Usually, I build the project for two environments(merchant and production) and I want to do that for Merchant and Production URL automatically fr
Is it possible to start IIS Express from the command line using the /path argument and include an HTTPS binding?
In my reference board, i am using Android Jelly Bean 4.1.1. I want to use bluetooth from command line. I know commands for enable/disable bluetooth, scanning the devices etc. ,But I don't know how to
I'm writing a bash script that automatically deploys an application to a tomcat server. How can I stop the application from bash / command line?
How to change user credentials of windows service from command line?
I am trying to read a file from the command line passed as input. No not the filename. I'm not expecting the user to input a filename on the command-line, so that I could open it like this : fopen(arg
I am creating a command line tool in Xcode using the foundation framework and I am confused on the basics of dealing with file paths. The first argument is to be a file (myfile.txt) or file path (./my
I want to generate Scripts i.e. Stored procedures and user defined functions from SQL server 2005. I have done it through SQL management studio but i want to to do it through Command line. Is there is
I have a simple MySQL stored procedure designed to return all child records for a given node. My problem is when I type this manually it returns the proper results - but when I put the same code into
I am trying to run a command-line command from inside my Delphi application. ShellExecute(Form1.Handle, 'open', cmd.exe', 'icacls C:\ProgramData\My Program\File /grant Users:F',nil,SW_NORMAL); Note