I'm having much difficulty running my jar file, probably because I'm not sure the proper syntaxes to use when using various switches on the commandline. Here's what I have: java -classpath %appdata%\.minecraft in\minecraft.jar;%appdata%\.minecraft in\mp3spi.jar;%appdata%\.minecraft in\jl.jar;%appdata%\.minecraft in\tritonus.jar;%appdata%\...

I need to use command line switches to execute the 'Save as Text' command. Ideally, I want to: use a command line switch to open a PDF use a command line switch to convert the PDF to a text file by mimicking the 'Save as Text' command. use a command line to close the PDF. Is this possible? If so, then does anyone know how to do this?...

This program is suppose to accept a number from the user and print that many prime numbers. For some reason the program doesn't work. I am new to bash scripting and this is my first program. To my eyes everything seems to be correct. Please tell me where I went wrong. echo Enter num read n for(( i=2; i <= n; i++ )) for(( j=2; j < i-...

So my Ds-16 arrived today, and I poped the lid off to move some switches around. The switches are nothing like detailed in the manual by the way... Totally different set, Mark was correct in his list of switched that came with his. I think mine are identical to his. Essentially just two 3-way switches, with all the rest being 2-way, inclu...

I want to write a php script that I can use from the command line. I want it to prompt and accept input for a few items, and then spit out some results. I want to do this in php, because all my classes and libraries are in php, and I just want to make a simple command line interface to a few things. The prompting and accepting repeated co...

I'm currently working on a console window in Swing. It's based on a JTextArea and works like a common command line. You type a command in one line and press enter. In the next line, the output is shown and under that output, you could write the next command. Now I want, that you could only edit the current line with your command. All line...

What's the best way to parse command-line parameters in Scala? I personally prefer something lightweight that does not require external jar. Related: Java library for parsing command-line parameters? What parameter parser libraries are there for C++? Best way to parse command line arguments in C#...

I am running a command in powershell ISE that was exiting out how I expected, but when I moved the code to command line to execute in different environments, I wasnt receiving the error anymore. The error only happens in ISE. I have tried to use -sta on the command line like others posted, but have not had luck. $SIEBEL_HOME\srvrmgr.exe /...

I have an eclipse project which I want to run from the command line in ubuntu. After searching on the internet I am trying the following command. java -cp . com.abc.utils.MyClassName I issue this command from the directory that eclipse is using to store all the class files. But I get this error: Exception in thread "main" java.lang.NoClas...

I am a total Perl noob and trying to figure out if this thing can be done. I have a text file which contains data like formula names, and then the formula in the next line (single line) like so - Formula Name = abc formula for TAT count(a)+500 The formula name is unique. I need to search for the formula name, and then replace the formula...

Can I use sed to check the first line of some command's output (to stdout) and delete this very first line if it matches a certain pattern? Say, the command's output is something like this: "AB" "CD" "E" "F" I want it to become: "CD" "E" "F" But when the first line is "GH" , I don't want to delete the line. I tried this, but it doesn't w...

I need a line of script that does something like this: if (results from PowerShell command not empty) do something The PowerShell command is basically powershell -command "GetInstalledFoo" I tried if (powershell -command "GetInstalledFoo" != "") echo "yes" but get the error -command was unexpected at this time. Is this possible to accom...

I'm installing Python for use with SQLMap . I've downloaded and ran the Python 2.7.2 MSI installer , and restarted my computer. According to everything I've read, I should be able to just call python and SQLMap from the DOS command line using python sqlmap.py , but the command line doesnt seem to recognize the python - I get a 'python' i...

I am using Python as a script language to do some data processing and call command-line tools for number crunching. I wish to run command-line tools in parallel since they are independent with each other. When one command-line tool is finished, I can collect its results from the output file. So I also need some synchronization mechanism t...

I'm trying to launch IntelliJ on command line in Mac OS X to use it's diff tool. Theoretically idea.sh diff file1 file2 should work. In practice there are some issues with the file which I think I worked around (removing some arguments to readlink etc). However when it does start, it wants me to enter license information (even though a...

When I run a build, sometimes I see a code change I forgot. So I want to cancel the build. Due to the build locking up my IDE, I have to use Break , however, it does not respond fast enough. I am looking for a command line approach so I can just hit a batch file in my quick launch. I tried this command: Taskkill /IM aspnet_compiler.exe /F...

When I run this on the command line: scp -i private.ppk -P 22 foo.txt someuser@domain.com:/home/someuser/foo.t xt Everything works fine. foo.txt gets transferred to the remote server without any problems. I need to run the exact same command from PHP. So, I have the following code: $command = 'scp -i private.ppk -P 22 foo.txt someuser@dom...

Hi i am doing a small project in C#, and i need to know what commands are comming from input source so i can do my work accordingly.. here is example... textBox1.Text = "First line \nSecond line"; richTextBox1.Text = "First line \nSecond line"; Richtextbox shows this output: First line Second line Textbox show this output: First line Sec...

I'm having a problem wherein my Python 2.7.3rc2 code runs fine through an IDE (Aptana Studio 3 with PyDev), but crashes when I either double-click the .py file or try to run it from the Windows command line. The problem line is where I try to write a string containing unicode characters to a file. The IDE has no problem with it, and write...

I have a problem with Netbeans automatically double quoting each of the command line arguments set in Project Properties -> Run -> Run Command. Since I would like to redirect the command line output to a file with > dump.txt this is a problem. Wrapping the command in `` doesnt help. I tried to run it in different terminals but they all...

Is it possible to use GDB or LLDB from the Terminal command-line under Mac OS X to debug apps running on the iOS Simulator? (e.g. not from within Xcode's GUI or console, but using an external command-line or process). If so, how?...

To exit from Python command line, I have to type exit(). If I type exit, it says Use exit() or Ctrl-Z plus Return to exit Usually when you type , you would want to exit the program. Why does the interpreter give me the above error when it knows I am trying to exit the command line? Why doesn't it just exit? I know it doesn't matter and it...

I use cygwin from my Windows command line, I've always done everything quite happily except being able to run something in the background (i.e. putting & at the end of a command). Just to give you more context, I want to be able to start a Mercurial web server and still be able to keep using the command line window and even closing i...

I have this problem when I run SAS 9.2 on the command line on a windows XP or a windows 7 machine. It involves procedures that utilize the GRAPH feature in SAS. Consider this simple program below (call it 'test.sas'): ods pdf file='c:\test.pdf'; data ds1; do x = 1 to 100; output; end; proc univariate data=ds1; var x; histogram; /* ca...

Is it possible to make the color scheme of GVim to exactly match the one in the command line version Vim? I like the colors of Vim more than the white-backgrounded GVim, but I still want to use GVim because the shift key doesn't map well on the command line version.

I'd like to get the version NuGet from the command-line, using nuget.exe. I know I can get the version of NuGet running as part of Visual Studio, as per the instructions here , but what I'm after is something similar from the command-line, i.e like: nuget -version Any ideas?...

I am using Ruby to execute a code that takes command line arguments. now i trying to use the same program with differnt options so i am putting the options in a file and i want the program to read each line interpret the options and execute the program accordingly. but i get this error. "C:/Ruby193/lib/ruby/1.9.1/optparse.rb:1 348:in block...

I created a Command Line Tool app using Xcode. In that app, I used NSWorkspace to launch another application bundle (.app) as suggested here. MacOsX: How to launch an application (.app) from a "Command Line Tool" type of app All seem to work fine until I tried to start that Command Line Tool app as a daemon using launchctl. If the daemon...

It is good practice to run acceptance tests against a clean install. We run acceptance tests nightly as part of our CI. When we run a build, we basically: delete the database. create a clean database. run orchard setup using the command line (which populates the database). enable required features using orchard command line. start up IISE...

Is it possible to pass command line arguments in coded ui test ? in normal C# programs we just pass the arguments along with the exe file eg: filename.exe "2" "7" in command prompt. but can something like this be done in coded ui tests? Thanks...

This is my homework, but please read my problem description first. I have to write a Java program as Path of the directory will be passed to the program as command line argument. Then program will prompt for a file name and find all the files with that name. If no argument is passed, program should search directory from previous ru...

I have some programs installed at the server side of my LAN . I want the client to be able to execute the server function for instance "svn --help" using command line .. My server url for eg xx.xxx.x.xxx I know that passthru() is the function i have to use . How can I make my client to communicate with the server using command line to exe...

Looking for a way by using JNA to get a list of all currently running windows programs and their command lines. There are a few tutorials on this site ( Get list of processes on Windows in a charset-safe way ) which show how to get a list of running program names but I'm looking for the full command line. I've seen posts mention the use o...

(Backstory: My PHP script is executing another PHP script through the command line (PHP's "exec()" command) so that the cURL session the target script creates doesn't cause the original PHP script to hang. I'm doing this so that I can send transactional email without slow page loads for my user if the email provider's servers are laggy.)...