command-line

Paster cannot stop daemon

I'm using the following command in my pylons app in an attempt to stop the daemon on the server: paster serve --daemon dev.ini stop This is the error I get: No PID file exists in paster.pid Could not stop daemon; aborting Wondering how I can stop this daemon so I can reload dev.ini. Thanks! ...

windows command line script variable going wrong somewhere?

Hi Battling with a windows command line script I just can't get to work. Basically I am trying to launch a program called vnctv.exe with the parameters of HOST ipaddress PORT 5900 PASSWORD x, however I only want to run the program with IP addresses of computers currently online. I've tried a few different things but I cant get anythi...

Problem running .bat file on Windows due to "input line is too long"

Hi, I'm using Windows and have a batch file (contents attached below) where I'm building up a classpath before trying to run a Java class. Unfortunately the classpath is fairly big and the file ends up being ~14kb. When I run it I'm getting an 'input line too long' error. I have read elsewhere that the max. size for an env variable i...

Advice for a new project - Command line Chess game between two Ubuntu Machines

Hi All, I am a CS student and I'd love to make a command line chess game. Ideally I would be able to ping my moves directly to my opponent and just for fun I would rather use ASCII art to print the board (No memory chess) at the command line. I have a 4 year computer science degree under my belt and I'm just starting work as a Java pro...

How can I pass command-line arguments containing special characters to a process launched via Perl or Bash?

I need to launch curl for a test. I need to send XML which has " / and other crazy things. Whats the quickest way to do it? I tried curl -k -d '<xs:element name="Login"/>' https://thewebsite.com/page.exe with no luck. ...

How to get the last key pressed without stopping the C programm ?

Writing an application with command line interface and I would like to know at any time if F1 or esc or an arrow key is pressed. What is the simplest way of doing this. I would like to avoid using readline type library. Edited: Linux specific question. It is not multithreaded ...

Are there unix shell tools to compute various word statistics on files?

Not the base ones (like wc)... I need tools to build tag clouds, to compute semantic distance between files, to extract word-dictionary from a file, etc. ...

Take picture using webcam from command line

I have a Logitech webcam (QuickCam Pro for Notebooks), and I'd like to take a snapshot using the cam from a command line. Does it have any command line interface? If not, is there an API that will allow me to build a command line tool like this? Thanks! ...

What is a command line compiler?

What is a command line compiler? ...

Is it possible to create a windows form app that can run from the command line with parameters?

I would like a windows form app that will contain a UI, but I want it to run from the command line with some parameters possibly also a /hide or /visible=false option. How is it possible to read in the command line parameters? And adjust accordingly? ...

CMD Script: How to close the CMD

Hello all, I have created a small command that will let me launch Internet Explorer. However, I wish to close the small command prompt that shows up when I launch IE. How can I do this? This is my current code: "%ProgramFiles%\Internet Explorer\iexplore.exe" http://localhost/test.html PAUSE I am guessing if I take out the Pause. It w...

The best CLI parser for Java

What CLI parser for Java is easy to use and more scalable than others? ...

Can I run JUnit 4 to test Scala code from the command line?

If so, how? I haven't come across the proper incantation yet. If not, what's the best approach to unit-testing Scala code from the command line? (I'm a troglodyte; I use IDEs when I have to, but I prefer to play around using Emacs and command-line tools.) ...

linux: copy and create destination dir if it does not exist

Linux: I want a command (or probably an option to cp) that creates the destination directory if it does not exist. Example: cp -? file /path/to/copy/file/to/is/very/deep/there ...

Can not make a tag in SVN repo from command line

What I want to do: I have checked out WC in current folder ("App", which is not SVN repository folder), sources were built and I want to make a tag in repository based on revisions in my WC I run the following command (in "App" folder) "C:\Program Files\CC\server\svn\svn.exe" copy . https://svnserver.com/svn/repos/TM1/Sources/tags/2009%...

Sending the output of a command-line perl script to the browser via mod_perl

I have a plain perl script that can be run from the command-line via perl -w test.pl. I then have a mod_perl2 script that can be accessed from a web browser. I want to have the latter call the former and send the output to the browser, flushing as it goes. The mp2 script doesn't have a shebang line, because it's mod_perl, so it doesn't ...

NSTask or equivalent for iPhone

I've an open source project (gdal) that I want to compile and run as part of an iPhone app. I had been expecting to use NSTask but I see now that it was removed in OS 3.0. I've also seen elsewhere that running external applications, though this would be a resource in my app's bundle, is not allowed. Has anyone else found a way to run c...

How do I forward parameters to other command in bash script?

Inside my bash script, I would like to parse zero, one or two parameters (script can recognize them). Then forward rest of parameters to a command invoked in the script. How to do it? ...

How to execute a command line from php

Hi friends, I need to convert the html file into PDF, I am having command line for this process C:\Program Files\Software602\Print2PDF/print2pdf.exe /iniconvert C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/BPO/Praveen/OCT_08/html_files/file.ini This is the command line to convert. But i dont know how to run this in ph...

Run firefox addons command-line

Hi all, I am working 508 accessible standard for a website. There are a Firefox plugin to help check on each page a website WAVE addons I am having a crawler that walk throught all pages of the website. Now i want to combine WAVE addons + my crawler to check website as 508 accessibility compliance automatically. My question is how to...