command-line

Where is svn.exe in my machine?

I have Tortoise svn installed on my desktop. I want to perform some tasks using commandline svn.exe? But I am not able to find svn.exe on my machine. Do we have to install something else to get the svn.exe command? ...

Windows command line compression/extraction tool?

I need to write a batch file to unzip files to their current folder from a given root folder. Folder 0 |----- Folder 1 | |----- File1.zip | |----- File2.zip | |----- File3.zip | |----- Folder 2 | |----- File4.zip | |----- Folder 3 |----- File5....

Stage untracked files for commit without staging tracked file changes

Oftentimes, when using git, I find myself in this situation: I have changes to several files, but I only want to commit parts of them. I have added several untracked files, which I want to track and commit. Solving the first part is easy; I run: git add -p Then, I choose which hunks to stage, and which hunks remain in my working t...

Command Line argument option not working on Visual C++ 2008

Hello, I am trying to pass command line parameters in Debug mode in one VC++ 2008 solution as described here Debugging with command-line parameters in Visual Studio. The thing is that somehow actually VC++ is not passing the parameteres because I always get 1 for "argc" variable. Is anything else that should be enabled or what could pre...

Suppress PHP Headers running cgi PHP from Ruby

Admittedly, this is a strange problem for me to have, but here is what I'm doing: I've got a Ruby script that is executing a string of PHP code and capturing the output. This is somewhat related to another problem that I had with running cgi PHP from the command line. Here is the Ruby script's source: #!/usr/bin/ruby puts "Content-...

cron file_get_contents() error

I have a php file which uses file_get_contents() It works fine in the browser, but fails with the following error when run as a cron job: Warning: file_get_contents(): URL file-access is disabled in the server configuration in /path/to/the/phpfile.php on line 22 This is what I'm using: /usr/bin/php5 -q /path/to/the/php...

Write data in cmd to memory instead of file, catch it with C#

Hi, For a C# project I'm experimenting with ffmpeg to extract a .wav file from a video file (in Windows). You could do this by running it on the command line like this: "ffmpeg -i inputvid.avi + 'extra parameters' + extracted.wav". This obviously extracts the audio from the input .avi file to a specified .wav file. Now, I can easily ...

PSFTP: overwriting existing files

Hello! I use psftp to sync directories on a linux box to my windows server (connection is initiated by the windows server). I use the "get -r /dir" command to get the files and directories recursively. Is there any chance to get only the changed/new files so that existing files are not overwritten? Thx, Tobias ...

I need to run a PHP script via command line but this happens.

I need to run a scrip via command line but the files necessary for me to run it require me to be in the directory of the script. But I cannot do it for every command line i need to run. Their are over five thousand. Could someone tell me how to either format the list easily or add something to the format that would make it run. I have so...

How to rename large number of files

I have a directory with files like this a.JPG b.JPG c.JPG I would like to perform something like this git mv a.JPG a.jpg I tried using xargs and other tools but nothing seems to work. ...

Executing CLI commands from Java

I have this API - which I managed to carryout some API steps solely from the CLI without using their GUI. Now I need to execute these CLI commands (i.e. for carrying out these API steps) in Java. When surfing, I couldn't find a helpful link for sample code on how to deal with this. May I know how to execute CLI commands using Java code (...

Simulate mouse movement in Ubuntu

Problem Am looking to automatically move the mouse cursor and simulate mouse button clicks from the command-line using an external script. Am not looking to: Record mouse movement and playback (e.g., xnee, xmacro) Instantly move the mouse from one location to another (e.g., xdotool, Python's warp_pointer) Ideal Solution What I'd li...

How do I convert this cURL command to PHP (libcurl)?

In continuation off of this question, what are the PHP statements I need to accomplish this: curl -is -F 'J:A-login=BTDT::Action::Login' -F 'J:A:F-address-login=EMAILADDRESS' -F 'J:A:F-password-login=PASSWORD' http://hiveminder.com/splash | grep -o 'JIFTY_SID_HIVEMINDER=[0-9a-f]\+' The flags and fields are still mysterious, and I've n...

Render Flash (SWF) frame as image (PDF,PNG,JPG)

Hi! I would like to write a python script that takes a bunch of swf files and renders them to individual image files. Each swf file has just one frame (text, pictures etc.) and no animations at all. I have already tried the render command from the swftools toolset (The windows version), but the resolution of the resulting image is too ...

How do i run the Android command line tools?

I'm still pretty new to Android and programming in general, and I can't seem to get the command line tools packaged with the Android SDK to work. I'm running Mac OSX and each time I try to run layoutopt, for example, the terminal returns, *-bash: cmd: command not found * Also, is it okay to have my SDK located in the Developer directory...

What is a good way to match a part of a line using command line tools?

I want to match a part of a line for example in the sentence: "The super id=42 or something." I want to return the number 42. echo "The super id=42 or something" | grep -o 'id=[0-9]+' | sed 's/id=//' Would return the correct answer, but is there a more elegant way of solving this, for example by using only one tool? ...

Display constantly updating information in-place in command-line window using python?

I am essentially building a timer. I have a python script that monitors for an event and then prints out the seconds that have elapsed since that event. Instead of an ugly stream of numbers printed to the command line, I would like to display only the current elapsed time "in-place"-- so that only one number is visible at any given tim...

Is there a Python library that eases the creation of CLI utilities like Django management commands?

I want to create a set of command-line utilities in python that would be used like so: python utility.py command1 -option arg Very similar to django management commands. Is there any library that eases the creation of such commands? ...

Copying eclipse projects through command line?

Hi, Does anyone know if it is possible to copy an existing project into a new, created workspace on the fly? I can create the workspace already through command line. I am thinking I either need to copy the whole project into another workspace (possible through command line?) or create a new project and copy the .classpath and .project fo...

how to comment in Windows command line?

In Bash, # is used to comment the following. I was wondering in Windows command line, how to make a comment? Thanks and regards! ...