command-line

Is it possible to always (force) overwrite local changes when updating from SVN? Ignore conflicts?

I know I should be working on a branch of my own but a couple of us are on the same branch of a project. One of the Dev's made a commit and I just wanted to update my local copy with the latest from SVN. Running 'svn update' I get this output: Restored 'index.html' U somescript.php Conflict discovered in file.xml'. Select: (p) postp...

zip files, zips the entire path

when i use winrar to zip a file, it for some reason zips the entire path. I am using vb.net for doing this. here's the code - Public Sub RunArchive() Dim p As System.Diagnostics.Process = New System.Diagnostics.Process() sPath = "C:\Users\images\" sArchive = "C:\Users\images\test" p.StartInfo.FileName ...

How to do string comparison condition in DOS?

Wow, never thought I would ever write anything in DOS. Now that I do, I know why I never wanted to. The syntax is absurd! Anyways I need help please. I would like to prompt the user for input, and if a blank line is received, I would like to use the default value, like this: set name=abraham. set /p input=please enter your name, press...

UNIX tty command and file command ?

Hi, I am new to UNIX and when I was reading a book about UNIX, I came across following two problems that I didn't understand. I would really appreciate your help. 1) Look up the man page for the file command, and then use it on all files in the /dev directory. Can you group these files into two categories? 2) Run the tty command, and ...

Need command line expansion to print all keyboard characters

Is there an awk-like or sed-like command line hack I can issue to generate a list of all keyboard characters (such as a-zA-z0-9!-*, etc)? I'm writing a simple Caesar cipher program in my intro programming class where we do the rotation not through ASCII values, but indexing into an alphabet string, something like this: String alphabet ...

ocr using a command line tool

hello folks, I'm looking for a windows command line tool that does OCR. Specifically I'm trying to extract the number from this image: http://img691.imageshack.us/img691/6075/wantocr.png I've tried tesseract and found it quite poor imho. Perhaps it needs settings that I'm not aware of. I've tried a few others and they too were pretty p...

Limit the output of the TOP command to a specific process name

If you call the top command, you get all the running processes. But how can I limit the output only to a certain process name like "java"? I've tried this top -l 2 | grep java but in this way you get only snapshots and not a continuously updated list. And top -l 0 | grep java is not really clear. ...

Why do I keep getting the error "The syntax of the command is incorrect"

Can someone explain to me why this command reports "The syntax of the command is incorrect."? The first part runs fine by itself, so I know it's not that. And the second part looks to be correct according to help find C:\Program Files\Apache Software Foundation\Apache2.2\logs>type error.log ^| find /C "2010" I was wondering if it migh...

Load HTML - Command line

Hi, I have a PHP script that dynamically creates a HTML file. In command line, I would like to load all elements in the HTML file. So let's say the HTML file has these elements: img src="http://www.test.com/image.php" ... iframe name="xxx" src="https://www.abc.com" ... I would like the Web servers test.com and abc.com to actually rec...

How to move a file in to zip uncompressed, with zip cmd tool

I'm try to determine how to use the zip cmd line tool to move a file (uncompressed) in to a zip of compressed files (ie I want a zip in the end with all files but one compressed, b/c the one file is another compressed file). Anyone know how to do this? ...

Bash scripting: parameter substitution problem

Hi there, I'm trying to write a simple bash script but something seems wrong, I'm testing the following on the command line: DATE="2010-09-{10,11}" result=`\ls *ext.$DATE.Z` and results in ls: cannot access *ext.2010-09-{10,11}.Z: No such file or directory but if I execute this: result=`\ls *ext.2010-09-{10,11}.Z` it works flawle...

Launching a website via windows commandline

I have a program launching a website via the following command. cmd "start /max http://url.com" When launching a website via this method it uses the default browser with its default settings for opening a new window. for example, firefox and IE will open the window inside the tab of an existing window if they are set to do so. I hav...

How to read command line ouput from Java (via Runtime.getRuntime().exec(...))

I'm trying to present some information in a Swing application about the existance of symlinks. The GUI has a JTextArea resultTextArea and a JTextField statusField. This is the code inside the Dialog class: public void checkForSymLinks(File... dirs) { for (File dir : dirs) { try { Process p = Runtime.getRuntime()....

Can I develop for android applications by using CLI

I've start developing android applications. but My PC has so poor resource cpu and ram for using eclipse so I'd like to develop by CLI javac.. How can I use CLI for developing android? ...

osx compiling AS3 project from the command line

When working on small projects or some test classes , I would prefer to quickly compile my code from the command line as opposed to creating a full Actionscript project in Flash Builder for instance. In a previous similar question , an answer was given referring to this article: http://www.senocular.com/flash/tutorials/as3withmxmlc/ b...

execute command within command ?

i want to ask if i can execute command within command ...or use the output of the previous command as the input of the followed command : command x then command y in command y i want use output of command x ...

In vbscript, how do I run a batch file or command, with the environment of the current cmd prompt window?

In vbscript, how do I run a batch file or command, in the current cmd prompt window, without starting a new process. For example. According to script56.chm (the vbscript help apparently) Windows Script Host Run Method (Windows Script Host) "Runs a program in a new process" So if I have code that uses that e.g. a VBS file, and a BAT...

How can I authenticate my POST request via OpenId on the commandline

I want to add entries to my RESTful Rails blog using HTTP POST requests. I have a script that does this easily enough, but it only works for my development app because I don't require it to authenticate. Now that I'm publishing my site, I obviously need to authenticate my uploads before posting them. The rest of the admin stuff is behin...

How to use Red Gate Ants Profiler on the Command Line

Hello, I am trying to use Redgate Ants memory profiler with the command line. I have seen the redgate page on the command line but did not find it very informative. Does anyone have a more detailed description on how to do this? Thanks for any help. ...

compiling synamic arm code

I'm building some common gnu/linux console utilities for my Android phone but so far I have only been able to build them statically, with quite a size penalty. Can someone walk me through the steps for synamic compiles using shared libraries? Here's the script(s) I'm using for configuration: ./configure --host=arm-none-linux-gnueabi \...