A command-line interface (or CLI) is a method of interacting with your OS or software by typing commands on your keyboard.

learn more… | top users | synonyms (3)

0
votes
0answers
3 views

Some ffmpeg command not working properly when I execute through java on ubuntu 14.04

When I execute ffmpeg command through java code then It is not executing properly Example-: I want to draw text in video through java code My code in java is String cmd="ffmpeg -i 12213blob.mp4 ...
0
votes
0answers
12 views

A utility or CLI command to create a text version of directory layout?

Is there a way I can create this result in a console or text file? Directory +sub directory + sub directory + sub directory + sub directory + sub directory + sub directory + ...
0
votes
0answers
10 views

runas /trustlevel:0x20000 cmd gives error

When I execute runas /trustlevel:0x20000 cmd with admin privileges from the cmd line, I get the following error: The program can't start because WINBRAND.DLL is missing from your computer. Try ...
2
votes
5answers
39 views

Nslookup command line with A record IP as sole output

I've found the following command to get your current public IP that works well from command line: nslookup myip.opendns.com resolver1.opendns.com I want to be able to run a command though that JUST ...
0
votes
0answers
11 views

Send email from “mail” command line client from a specific address

I am attempting to send an email from the terminal app "mail" in OS X. I can do so, however I would like to send it from a specific address, rather than the .local address that it sends from by ...
0
votes
2answers
18 views

How to list file names on Windows as the Unix find command?

I'm looking for an equivalent command line on Windows to the following Unix command: find test -name '*.txt' -print This command lists every filename which is in the 'test' folder and subfolders, ...
0
votes
1answer
39 views

Invisible super hidden folders in Windows-7

I change the setting of folder option in a way that I can see Hidden and Super Hidden files Then I opened Internet Explorer (In this case version 9 - But I think there is no different between ...
1
vote
1answer
12 views

How do I write a batch script to start a process and terminate it after letting it run for about 10 seconds?

How do I write a batch script to start a process and terminate it after letting it run for about 10 seconds? @echo off start abcd.exe [X] taskkill /im abcd.exe /f exit
2
votes
2answers
40 views

Batch File to start .exe when a specific number of files is in monitored folder

I am trying to write a batch file that will trigger an exe whenever there are exactly 4 jpg images in a folder. Afterwards the images should be deleted. I have got it to work it seems, but the file ...
0
votes
0answers
23 views

How to trim and level the volume of mp4 files from the Windows 8 command line? [on hold]

I want a tool to trim and level the volume of my mp4 videos from the command line on Windows 8. Thanks! I saw an articles about doing this with VLC and FFmpeg, but didn't understand them.
0
votes
2answers
20 views

Batch scripts disables Internet - getting 'System cannot find the drive specified' though I'm not asking it to

I have a batch script (that I'm running as a .cmd file through the right-click Send To menu) that first disables a user's Internet adapter, then securely unzips a .zip archive. For most people, it's ...
0
votes
0answers
11 views

Debugging a python program, called from another batch file

I have an annoying problem. I have a windows batch file, that does some initialization (mainly setting python paths) and then calls a python script. When the batch program is run, another window is ...
0
votes
0answers
15 views

mounting/mnt/usb-generic in ubuntu 14.04

This is error occurred for me while booting ubuntu 14.04: An error occurred while mounting/mnt/usb-generic_USB2.0-CRW_20100201 press S to skip or M for manual recovery. Can anyone tell how to ...
0
votes
0answers
26 views

Trap a program that has no command line output

I am using the CrashPlan backup tool to backup my home file server. I use an ssh tunnel to interact with the GUI on the remote machine (as detailed here). Currently, I have an alias in my zshrc that ...
1
vote
2answers
19 views

How to use rm with conditional file name

I have a folder with thousands of subfolders named numerically (from 1 to 200000) I would like to delete all the folders (and files inside of them) which are named 100000+ Is there a way to do this ...
0
votes
2answers
33 views

Win7 Command Line piping

I want to know why in the command line prompt this happens. I have a script fileX.cmd which is one single line of text: @echo dir If I do C:\Users\Dogfood>fileX.cmd | cmd This will show all ...
0
votes
1answer
31 views

Dos - write bits on HDD in dos. (low format etc) [on hold]

How can i write bit by bit on an HDD at a low level. In order to create my own program in DOS mode (bootable usb key). I would try something like: *get all bits adresses for example on a list/array ...
0
votes
1answer
22 views

Batch File To Convert All Files In Directory To ATF

I am currently developing and Adobe Air mobile application and need to convert a large number of files from .png to .atf. I currently do this by running commands like the one below on every file. ...
1
vote
1answer
25 views

Grep on specific directory structures

What I'm trying to accomplish: Search for the regular expression \b\$\w+ in all .php files that fall under this directory structure: foo/templates/*.php bar/templates/*.php ...
0
votes
0answers
2 views

mac os x wireless association to wpa2-enterprise SSID from the command line

I have a script that connects to a bunch of macbook laptops and makes them associate to a certain SSID. The command that I run is networksetup -setairportnetwork en0 SSID PASSWORD. However If I have a ...
1
vote
1answer
46 views

Multiple versions and setting locations of cmd.exe?

I noticed something unexpected with my command prompts on Windows 8.1 (and Windows 7). I was hoping someone could clarify this. I installed cmd-colors-solarized on my machine so my command prompt ...
1
vote
2answers
27 views

How to Use Batch File - Simple Application to Restart Audio Drivers

I want a batch file to open CMD and run "net stop audiosrv", then "net start audiosrv", then kill CMD. I am having problems with a bunch of things including It's not waiting It is opening a new CMD ...
0
votes
1answer
20 views

eclipse not started from command line in Ubuntu 14.04

I installed latest version of Eclipse at /opt/ directory in my Ubuntu 14.04 machine. Then I created a soft link to open it through command line: sudo ln -s /opt/eclipse/eclipse ...
1
vote
1answer
28 views

What does \??\ mean in \??\C:\Windows\System32\conhost.exe?

I noticed this when trying to find an answer to this question. It seems to be exclusively associated with conhost.exe only appearing in the command-line parameters for conhost.exe Also the parameter ...
0
votes
0answers
17 views

iTerm/OSX Terminal: Change text margin from edge of window

Currently, I use iTerm on OS X. My terminal looks something along these lines: I came across this picture of a terminal setup on GitHub, and I wanted to imitate it: Specifically, I wanted to ...
-1
votes
2answers
39 views

Adding an executable to the linux command list

Sorry, I know its been asked before, but how do i add an executable to the command list for the command line? Such that typing: my-application will have the same effect as ...
0
votes
1answer
18 views

Ubuntu equivalent command to Windows tasklist command

I have a couple lines in PHP to check if a specific process is currently running on my server. If the process is running, I include a script that is used in to interact with said process. Below is the ...
1
vote
4answers
34 views

How can I close a program with dos when the computation is finished?

I have a a problem with running a program in matlab by either the use of a batch file or just the dos() function. I can now open a program en run it with the input by using: start program.exe ...
0
votes
1answer
36 views

How to call a program to be run with admin privileges but under the same user (Windows Command Prompt)

I need to invoke a program with admin privileges from command prompt. it should prompt to the user an alert such as: I found many answers like: runas.exe /user:administrator %~dp0\MY_PROGRAM.BAT ...
0
votes
1answer
27 views

how does sort compare lines?

I've always assumed that sort without any additional arguments, will sort a file in lexical order. However today I ran across following test case: sort test2.txt a/a a/c a//c a/d As you can see the ...
0
votes
3answers
32 views

Mac : How to open the output of a CLI command in a text editor

I read how the output of a cli command and open it up in the default text editor. I lost the link to this article/blog. I kinda remember that it was using the open command to pipe the output of a ...
1
vote
1answer
22 views

Set a keyboard shortcut for a Windows CMD command?

I'm running Windows 8.1 Pro and would like to know if it's possible to have a keyboard shortcut to run taskkill /F /FI "STATUS eq NOT RESPONDING" using "CTRL + ALT + X" SIDE NOTE: I have currently ...
1
vote
1answer
38 views

zip file (with spaces in the files name) to unzip and rename files and zip back

I'm trying to rename the contents of a zip file to match the name of the zip file with a batch file. This is exactly what I'm trying to do : ...
1
vote
1answer
28 views

How to list specific dated folders in a root folder to use with wzzip (winzip) command line in my batch script?

What I am looking to do is, using winzip command line (wzzip) inside my batch script, and zip any folders that have 201409 (That is Sept 2014)(for example) in the folder name into one zip file. There ...
0
votes
2answers
56 views

Listing files in directory: weird output

I was trying to list files in some directory, but I am getting weird results. This is command I type in command prompt: dir *t.* This is result: c:\test\1.1.1990.txt c:\test\1.31.1990.txt ...
0
votes
0answers
23 views

How to write comments in mac configuration files

I'm just curious if there is a convention or proper way to add comments to the configuration files in the Mac OS (10.9.4 or above) such that it will not affect whatever reads the file. For example I ...
1
vote
4answers
147 views

Shell script: ssh to remote machine, then exit: 'exit' does not work

I have a shell script of the following type: #!/bin/bash ssh mylogin@myremotemachine.com echo "Hi" exit I run it locally to do something on a remote server (represented by 'echo "Hi"'). However, ...
0
votes
1answer
36 views

copying several text files to one text file in numerical order using cmd

i wanted to copy files "scholar (1).txt" to "scholar (25).txt" to a single .txt file used the following methods: wikihow: Merge Text (.Txt) Files in Command Prompt for %f in (*.txt) do type "%f" ...
2
votes
2answers
32 views

Print markdown file from command line

I was looking for a way to print a markdown file from command line. I usually use lp for simple text files; I want to use something like that, but for markdown. Also it would be great that this ...
0
votes
1answer
22 views

Alter default audio output device from command-line

I have 2 audio output devices: 5.1 Speaker System attached via Toslink Gaming Headset attached via USB Is there a simple way to change which device is the default output device, from the ...
0
votes
1answer
16 views

If command, importing .reg not working

I am trying to use a if command to change language. But all I am getting is "Syntax error" I really can not find the real syntax. CMD file @echo off echo "1 =Brazilian Portugese" echo: set ...
0
votes
0answers
27 views

How do I show or hide file extensions of multiple files on a Mac?

Variations of this question almost always describe a tedious one-at-a-time "Get Info" process to check or uncheck "hide extension", OR to use a hammer approach by using Finder -> Preferences -> ...
0
votes
1answer
16 views

Is there a way to send a screen command to a screen session “above” my current screen?

I would like to be able to send a screen command to a screen session "above" my current screen session (which is on another server). Imagine the scenario of starting an initial screen session and from ...
0
votes
1answer
35 views

mac how to run a command in a different tab/window of a terminal

In Windows, I can run any program from the command prompt by typing c:> start startup.sh and windows will run the startup.sh in a different command prompt(terminal) window. How can I do the ...
0
votes
1answer
23 views

OSX's command line zip creates root directory

I'm trying to compress files, directly into a zip. What happens is that the zip automatically creates an initial directory in the zip with the name of the zip. Example: zip -r0 myfile mydir/ Will ...
0
votes
1answer
27 views

How to use an email relay server from cmd line

I have some cronjobs that run on our servers that monitor processes, run automated jobs, etc. These scripts mail alerts for our monitoring or mails out the automated job results, etc. using the mail ...
0
votes
2answers
31 views

cmd cannot execute file inside of /cygdrive/c/

I am running a Ruby on Rails application - inside the app there is a Ruby Gem I've loaded which determines the location of an executable file called pngcrush. The way it does this is that it runs the ...
0
votes
1answer
14 views

piping pid to kill on ctrl-c

So I have a Grunt task running this command: java -jar build/lib/plovr.jar serve ./someroot' + configurationFile + ' & grunt watch:sass Problem is, for some reason the java process keeps ...
0
votes
1answer
12 views

Surpress execution trace for echo command?

I'm running shell scripts from Jenkins, which kicks off shell scripts with the shebang options #!/bin/sh -ex. According to Bash Shebang for dummies?, -x, "causes the shell to print an execution ...
1
vote
1answer
11 views

Process port-protocol form PID

If I have process ID and I want to know the port and Protocol of this process is there any command in netstat or other help me?