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)

1
vote
1answer
13 views

How to diff the redirection of two commands in a shell script

in the command line I can diff the output of two commands with $ diff <(cmd1) <(cmd2) but if I put this in a shell script $ sh do_two_comands_diff.sh It does not work $ diff <(ls) ...
0
votes
0answers
11 views

How to write a script that accepts input number(1-5) from user and then run the corresponding bash file in same directory?

How to write a script that accepts input number(1-5) from user and then run the corresponding bash file in same directory? Initial scripts asks a user to input a number. Like if a user enters number ...
0
votes
0answers
18 views

Programs launched via CMD script freezes

I've been trying to start applications up with a CMD script on Windows 8.1. eg. Start "Outlook" "Outlook" Outlook 2013 launches fine however its slow and lagging. And freezes often. The applications ...
0
votes
3answers
51 views

Time Zone is getting different over ssh command & normal ssh

Whenever I run a date command over SSH the timezone shows different and if I login to server with SSH and if I run the same command it is completely different. Running command with SSH >ssh ...
0
votes
1answer
15 views

Run a command in a batch file on the system clock

I have two different connection for my internet connection. The first uses from 7am to 10pm. The second uses from 10 pm to 7 am the next day. And for each of the connections I've made a batch file ...
0
votes
1answer
7 views

Can't use the * with ImageMagick : I get “Invalid argument”

Using the example provided there : Combine multiple images using ImageMagick I type this in command line in windows 7 : convert -append a_*.jpg out.jpg This is the error message I get : ...
0
votes
0answers
10 views

Why am I getting conflicting results when checking Maven version in Windows PowerShell and cmd64 (Environment variables issue)

I'm looking at Maven for the first time, trying to get everything up and running. I've been going through the tutorials here and up until now everything has been going smoothly. I've added all the ...
0
votes
0answers
15 views

Location of windows command script in the pinned directory

I have a shortcut of type windows command script and a shortcut of type application. When I pin the shortcut of type application in the startmenu, a Icon is created for the same in the folder: ...
1
vote
1answer
24 views

How to make windows 8.1 command line save commands history?

Exist a way to automatically save command history on windows 8.1 command line and have it available after close and open the command line program?
0
votes
0answers
11 views

Command prompt freezes when I open mysql

I have searched the net and this site, but I haven't found a solution yet. I installed XAMPP, but this wasn't visible through the command prompt. I then installed 32-bit MySQL on my 64-bit machine ...
1
vote
1answer
30 views

How to write into a Log file from the batch file?

I have a batch file that triggers process in Access database. I'd like to write into a log file (just some *.txt file saved in the same folder) time when before the process started and after it was ...
0
votes
1answer
14 views

Does dd care when cloning from smaller hdd to bigger hdd?

Does DD care about hard drive size? I currently have a smaller 500GB HDD that i want cloned to a 1TB SSD. Will it clone without a problem relating to size? will there be non partitioned space? was ...
0
votes
0answers
18 views

Xcopy or Robocopy from Network folder to SharePoint(2013)

I am trying to copy files from a network folder to a SharePoint folder. I have read/write permissions to the SP folder and can manually upload documents to it. I was able to get the .bat to work 1 ...
-2
votes
2answers
42 views

What was the reasoning behind the lack of a right click in the Windows command prompt? [on hold]

On *nix and OS X, windowed terminals support ctrl+v/ctrl+shift+v/cmd+v for paste, and right click past/copy. On windows however you need to right click the title bar and go into an edit sub menu. ...
2
votes
2answers
25 views

One-line code in bashrc to edit pdf

I would like to have a one-line code in bashrc, for removing the first page of a pdf. The command to be typed in the bash prompt could of the form: cut name.pdf This command should remove the ...
0
votes
1answer
30 views

How to disable User Management for Administrator in Window 7?

I have two admins accounts A and B in Window 7. I want to disable User Management for B admin account. My approach that I took was I hide the User Management options from control Panel for B from ...
0
votes
1answer
20 views

Bash scripts are not working but on mac terminal those commands in scripts works

I'm stuck with a wired problem.My bash scripts are not working now.It worked previously.I don't know why.Interestingly the commands on the script work when I enter it directly on the terminal. This a ...
1
vote
1answer
10 views

Exporting AWS instance

I am trying to export my Amazon EC2 instance to a my S3 bucket as a VMware image. I have successfully set up Amazon CLI tools, added my credentials and can run commands. I am using ...
0
votes
0answers
17 views

Associate files with batch script [duplicate]

I've got a .bat-file which expects an input file as a command line argument, i.e. script.bat input.key I associated .key-files with script.bat in Windows and I excepted the same behavior like I ...
0
votes
1answer
17 views

Command Line Tool for Adding To Your Windows PATH, Permanently? [duplicate]

Is there a way to permanently modify your PATH from the command line? I find myself often trying to run a command or two on the DOS prompt, and find out it's not on my path. I manually find the ...
0
votes
3answers
31 views

Moving folders in Linux inconsistency

I have a shell script that deploy an application to a staging server. However, one of the application's directory needs to be backed up and restored after the deployment (so it is not overwritten). I ...
0
votes
0answers
9 views

How to install a unix CLI based OS on MBP? [on hold]

Please suggest a CLI based unix OS for my MBP 9,2 with installation instructions. Moreover, how do I install a compiler on the OS (mainly for c/cpp). My university server runs on RedHat, and I feel ...
1
vote
2answers
43 views

How to configure automatic password handling for git commands:

I have an automatic build script for my build server that builds Android applications. As part of this building process, I need to pull the current sources from the repository to make a release and ...
0
votes
0answers
21 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
19 views

A utility or CLI command to create a text version of directory layout? [on hold]

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 + ...
2
votes
5answers
67 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
15 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
3answers
34 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
45 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 ...
2
votes
2answers
24 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
55 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
27 views

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

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
28 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
12 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
20 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
20 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
35 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
42 views

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

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
23 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
26 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
3 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
47 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
36 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
24 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
33 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
18 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
40 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
29 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 ...