command-line

MSN Messenger Command Line Args for run dialog???

Can I pass my username and password as parameters to MSN Messenger from the commandline. To auotmate logging in? "C:\Program Files\Windows Live\Messenger\msnmsgr.exe". I would like to create a shortcut that automatically logs me in. Does anyone know how to do this? Aside from saving my credentials via the GUI? Thanks, ~ck ...

check status of one port on remote host

I need a command line that can check the port status on a remote host. I tried ping xxx.xxx.xxx.xxx:161 but it doesn't recognize the "host". I thought it was a "good" answer until I did the same command against a host I know has that port open. This is for a batch file on Windows that will check the status of the remote port then run...

How to create a layered PSD file from command line?

I need to create a layered PSD file with ImageMagick or any other command-line tool available on Linux platform. Since I need to do this on Linux server, I can't use Photoshop scripting. The ImageMagick command below creates PSD file with a single layer, where two images (here: plasma fractals) are positioned one below another. (I use I...

How to get GCC linker command?

How can I get the command line GCC uses to invoke ld? I have a problem for an AVR target where GCC apparently adds a linker option which I am trying to override, so I would like to look at the exact options GCC uses for ld. ...

'Memcache' not found in command line PHP script

I have Memcache installed and working for PHP apps run through Apache (v2.2) but when I try to run a .php file in the command-line i get this error: Fatal error: Class 'Memcache' not found in /usr/local/Matters/app/matters-common/connection.php on line 94 Line 94 is: $memcache = new Memcache; Other info: CentOS 5.2 PHP 5.2.5 (cli)...

How do I print the class structures in a jar file using the javap tool?

I want to list the methods of the class files in the jar using the javap tool. How do I do it so that it lists the methods and members of all the class files in the jar. Right now I am able to do it for just one class at a time. I am expecting something like if I say javap java.lang.* it should enlist the methods and members of all t...

Command-line XML validator for Windows

I've always found validation against a schema to be an invaluable ward against thinkos and would like to incorporate validation checks as part of a project where I frequently need to hand-write XML files a few hundred lines in length. My text editor has a fairly nice CLI integration feature, so I'm looking for a command-line validator. ...

Using powercfg to duplicate the currently active power scheme

I need to run a batch file, with a series of powercfg commands to duplicate the currently active scheme and rename it. Manually, I would do something like this at the command prompt. powercfg -getactivescheme This would give me the GUID of currently active scheme. powercfg -duplicatescheme <GUID obtained above> <new GUID> Ideally,...

Library/Framework for Parsing Output from Commandline (C#)?

My application needs to: Run an external command-line application Capture the standard output/error during execution Parse the data from the output/error and use it for status display in the main app While it's not hard to do it, it seems to me it's a very common task, and I was wondering if there's a library or framework simplifyin...

Running Scheme from the command line

How do you run Scheme programs from the terminal in linux(ubuntu)? Also how to accept arguments from the command-line in a Scheme program? Edit: Im using the DrScheme implementation. ...

MS Access - Output Data in Windows folder, can be deleted after procedure?

Not sure if this question is going to make sense or not be here goes: So I have a some VB that outputs data from some queries. It simply export that resulting dataset from the query out as excel into an excel file, and there are several that do this. These all trip automatically (open and close events on forms) as a part of a little aut...

console/command prompt app .net/c#

Any starting point/ideas for a custom console app which mimics the dos command prompt ? Basically looking for best practices and ideas for where to start Perhaps using powershell which frankly i've not looked at yet ! I know this is a little retro but i've found some limitations in the web app done using asp.net mvc etc. ( few of them ...

How can you access the base filename of a file you are sourcing in Bash

I am sourcing a file in a bash terminal that needs to export some environment varibles. Example: source linux_x86.env the env file looks kinda like this: export ARCH=/home/user/project/linux_x86 I have a bunch of different architectures to compile for and I want be able to do something like this: export ARCH=/home/user/project/...

Batch Delete Files From File On Cmd Line

I have a long list of file names in a txt file, which I generated using findstr /M "string here" *.* > c:\files.log The file is about 3mb. Now i want to delete all of those files. I tried del < c:\files.log but that doesn't work. What should I use? ...

remove line of text from multiple files in linux

is there a simple way to remove the same line of text from a folder full of text documents at the command line? ...

What are the best-practices for implementing a CLI tool in Perl?

I am implementing a CLI tool using Perl. What are the best-practices we can follow here? ...

Visual Studio -- how do I save debugging properties so they're applicable for all projects?

The accepted answer to the question http://stackoverflow.com/questions/298708/debugging-with-command-line-parameters-in-visual-studio accurately describes how to set command-line arguments for a given project: "In VS 2008, right click the project, choose properties, go to the Debugging section -- there is a box for command line argumen...

Exit in For loop - Windows Command Processor (CMD.EXE)

Hi, I am trying to find way to break / exit from FOR loop, if there are any error occured. Below is content of batch file. @echo on set myfile=D:\sample.txt FOR /F "tokens=1,2 delims=," %%i in (%myfile%) do call :process "%%i" :process set recfile=%1% echo %recfile% echo "Step in Test1" echo %errorlevel% pause; exit /B 0 If %errorl...

tree command as a regex, but without the hidden files

Thanks to a nice post at http://murphymac.com/tree-command-for-mac/, I have my long lost linux command tree so I can see the complete directory tree with a single command. I've implemented it via a function in my .bash_profile like this... function tree { find ${1:-.} -print | set -e "s;[^/]*/; ;g" } ...but what I would like is a v...

Vim: running java from vim command gives error.

I wrote a simple hello world program to test the JDK installation. I can compile from Vim using: :!javac Desktop\HelloWorld.java That works just fine but when I try to run the program using: :!java Desktop\HelloWorld it gives me this error: C:\Windows\system32\cmd.exe /c java "Desktop\HelloWorld" Exception in thread "main" java....