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)

2
votes
1answer
39 views

How do I phrase what I'm looking for here?

There is a feature I'm looking for on Windows in the command prompt - and I don't think it exists - but rather than looking to see whether it exists in any way - I'm looking to see how to properly ...
0
votes
1answer
20 views

How to put a multi-lines text in a database from the command line?

I have emails exports in full text (one file per email). I want to put them in a database from a shell script (bash or python). Let's say I have created a database with a emails table, and from, to, ...
0
votes
1answer
49 views

Windows, not admin: Proxy working in Firefox but not in cmd, why?

I've manually configured the proxy in Firefox, and it works. I tried to use it also in the command line, but it fails: >set http_proxy=http://USERNAME:PASSWORD@HOST:PORT >set ...
0
votes
1answer
42 views

Command-line host info

What is the equivalent of host hostname from Linux in Windows? For the people pointing me to how to change hostname in Windows, it is not about changing the computer's hostname, what I meant was: $ ...
0
votes
1answer
35 views

Windows batch file “was unexpected this time”.

@echo off pause set /a x=1 set /a n=0 set /p x_end=x (End)= :loop cls set /a n=n+1 set /a x=x+n+1 set /a students=n+2 echo x=%x%, n=%n%, x (End)=%x_end% if (%x%=%x_end% goto end) goto loop :end echo ...
1
vote
1answer
57 views

7zip Batch Compression for a specific file extension in different folders

I've already learn how to batch compress my files as-is with 7zip but I have something more complex need on this issue. Maybe I can explain my needs with this scenario; I have a backup folder of my ...
2
votes
1answer
30 views

Delete scheduled taskname containing space

I want to delete scheduled tasks that start with "Adobe Acrobat" eg "Adobe Acrobat 123","Adobe Acrobat 456","Adobe Acrobat 789" schtasks /Delete /TN Adobe* /F This command fails to find any tasks ...
0
votes
1answer
23 views

Change to a “parallel” directory in a single instruction

I would like to move directly from the "Classwork" directory into the "Assembly" directory with a single command line instruction. If possible, I would like to use relative paths to do this: I ...
0
votes
2answers
33 views

Return a list of files/filenames in order to find where a pattern of filenames breaks

I have a folder containing hundreds of files with filenames such as month-day-time.txt They follow a pattern of 1 file for every 10th minute of the hour, as in the example (here the minutes ...
0
votes
2answers
37 views

In Linux, how can I run a process that I can come back to later to give a command after detaching

I'm currently developing a server hosting app (mainly for myself / learning purposes) and everything works great and what not, I don't know how many of you are familiar with Counter-Strike in general, ...
0
votes
0answers
58 views

Nohup doesn't work when executing script from Jenkins

I have bash script which executes following nohup ws --port 8080 & when executing that script directly on remote server and closing connection - process still exists. But when i am using ...
0
votes
3answers
53 views

How to access folder path from first input parameter and how to call IF Loop in batch file?

@Echo OFF SET FilePath=%1 SET HeaderFilePath=%2 SET RetrunCode="0" Call :sub %FilePath% exit /b :sub SET FileName=%~n1 SET FilePath=%1 SET "FileType=.zip" CALL SET ...
-2
votes
1answer
45 views

Command line switches for Netop Remote Control version 9.0 (NGstw32.exe)

Would anyone by any chance have the command line switches for Netop Remote Control version 9.0 (NGstw32.exe)? I've contacted Netop support but they no longer support this version, and I can't update ...
1
vote
1answer
65 views

Windows: Command-line method to know the name of my audio recording device(s)?

I don't know if this could be a rather programming question, so I have opened a corresponding (and a bit different) question at StackOverflow. I will post the answer here if I obtain it, by the ...
0
votes
1answer
67 views

Mac OSX restart from command line and close all windows

I want to use command line to restart my mac OSX, I'm using: sudo shutdown -r now But i want to restart without the reopen windows option, I've looked at the documentation here but with no luck, ...
0
votes
2answers
46 views

Batch: How to forward data to new CMD instance as arguments

I'm looking to call another CMD instance and pass data to it from the parent instance. I'm aware of the general route of using variables, but it would not be feasible in this case as endlocal and ...
2
votes
1answer
29 views

How to use START and pipe together?

Originally I had a command like this (on linux) daemon flag & app flag However on windows bc daemon never ends app never starts. So I wrote this instead start /B daemon flag & app flag ...
1
vote
1answer
29 views

Can I display specific part of Output from Command Prompt in Windows?

If I run netsh wlan show hostednetwork it will display, Hosted network settings, Hosted network status these two parts. But, if I want to display just the "Hosted network status" ...
1
vote
1answer
25 views

CommandLineTools folder displayed in Finder but not in CLI OS 10.9.4

The finder browser shows CommandLineTools, xcode-select --print-path also shows the path, /Library/Developer/CommandLineTools/ but I cannot get to it using cd and ls doesn't show it inside of the ...
0
votes
1answer
29 views

adding the cwd / pwd / (.) to the path in powershell

So I have a program I'd like to run in Windows PowerShell. In cmd I just type in script.cmd and it'll run the script. In PowerShell I apparently have to do ./script.cmd. BASH behaves similarly by ...
1
vote
1answer
25 views

Open only directory in given directory

I am trying to write a simple batch file, that when run, will move and rename some files within a certain directory. I know I can navigate to a directory in command prompt with cd "path_to_directory" ...
2
votes
4answers
69 views

bash extract first number from filename

I'm trying to move files like this: ... DLG023-00-01-sprite.TextGrid.json DLG023-00-01.prosody.json DLG023-01-01-sprite.ogg DLG023-00-02-sprite.TextGrid.json DLG023-00-02.prosody.json ...
0
votes
0answers
13 views

Disk Usage Equivalent of Bandwidth Stats

Looking for in effect the equivalent of vnstat -w but for disk usage: rx | tx | total | avg. rate ...
0
votes
1answer
30 views

Password cmd switch for Telnet

I'm trying to created a batch file to automatically ping routers with telnet. My connection prompts me for password and I'm not being able to set it : start "C:\Windows\System32" telnet.exe [server] ...
2
votes
1answer
28 views

Continue typing in command line after executing an option

Noob question: (I don't know if this is the same for everything as it is for SASS), but after typing sass --watch sass:css it says Sass is watching for changes. Press Ctrl-C to stop., as expected, ...
0
votes
1answer
61 views

How do I run Asterisk as user other than root?

I compiled Asterisk 11 from source as user root on CentOS. Now I want Asterisk to run as user asterisk group asterisk. I have uncommented AST_USER="asterisk" AST_GROUP="asterisk" in ...
1
vote
2answers
43 views

cmd has wildcard bug?

Files in folder: a.j ab.jp abc.jpg abcd.jpeg dir command results: Command Result (Files shown) ---------- -------------------- dir ?.* a.j dir ??.* a.j, ab.jp dir ???.* ...
0
votes
2answers
48 views

Windows 7 - How to locate a list of files by filename and copy them into a folder

I have a list of 200 filenames. I need to find these files, which are located in different subfolders, by their filename and copy them into one separate folder. I'm using Windows 7. How do I do that? ...
0
votes
1answer
295 views

Accidentally associated .exe files with java.exe

I have downloaded a YawCam.exe program in order to take pictures with my webcam. After installation I clicked its icon to start then it opened 'Open With...' dialog to select which program to be ...
1
vote
1answer
1k views

Disable auto launching of Photos application on Mac OSX Yosemite

I'm aware that there are solutions existing that allow you to prevent auto launch of applications such as iphoto or the newer replacement, Photos on a per device basis through the UI of Photos itself, ...
1
vote
2answers
66 views

Stop/start a Windows service with a specific path?

I would like to create some scripts (Windows Batch or PowerShell, whichever will work) that can stop and start services that have their binPath in a specific folder. It will speed things up when ...
0
votes
2answers
86 views

.bat file random open file for 1-5 file in folder

I need a script to run in a window to monitor my folder. When I put a jpg file in this folder, then the script running in the window should open that jpg file with photoshop droplet (.exe), wait for ...
-1
votes
2answers
50 views

How to determine the username on a windows command shell

There are various suggestions on how to determine the current username on a windows command shell without using whoami, such as this question or this question. The generic answer seems to be echo ...
2
votes
1answer
25 views

Search for files created at specific time in folder OS X

I have a folder with 2000+ image files in it from a time lapse camera. I want to find/select all the images that were taken at the time 10:00 and 15:00. The find function has a "date created" but I ...
0
votes
1answer
18 views

Hashutils to recurse the whole drive

Following this post another super user question, I downloaded hashutils. Works great with with the -r flag to recurse a folder. However, I am unable to recurse a whole drive. Trying this command, the ...
0
votes
1answer
112 views

can't run 'wget|curl|git clone' or 'irb' in MobaXterm

A collegaue recommended me to try out MobaXterm (Personal) for my *nix on Windows (7) needs. It's promissing but I have the following problems: although I had installed ruby (tried the apt-get and ...
-2
votes
1answer
62 views

Batch/Powershell - Empty directory - mkdir with todays date - backup folders

I'm trying to make a batch or a powershell script that: First: Empties the folder C:\backup\ Second: Creates a new folder with todays date withinin c:\backup\ Third: Copies 2 folders c:\123 and ...
-1
votes
2answers
58 views

How to install exe versions of linux utilities on windows? [duplicate]

I am aware that we can get .exe versions of many linux utilities. I happen to have wget.exe, curl.exe and busybox.exe. But how can I install them so that instead of typing C:\Users\Rahul>cd ...
1
vote
1answer
169 views

How would I add a RunOnce reg key on a remote machine to have a browser open a webpage

Context / Background / Info: I have local admin access (not domain admin) in a few computer labs that I manage and maintain. I have a script that I use (below) that will reboot computers and log in ...
0
votes
0answers
51 views

Pipe remote jpg webcam image to ffmpeg as video

I have a cheap ip webcam. All it provides is a single http url to a static jpg file. Such as http:///image.jpg. Repeatedly requesting the same url will provide subsequent frames from the ip camera. ...
0
votes
1answer
26 views

Decompress files in subfolders to the same subfolder using 7-Zip

I have a set of subfolders with .gz files buried in them. I need to decompress the files and keep the directory structure the same. I have used for /f "usebackq" %i in (`dir *.gz /s/b`) do 7za x %i ...
2
votes
3answers
186 views

Make batch file wait for service to start when restarting services

I have a batch file that frequently restarts a group of services developed in house. We are soon moving away from these to something more stable, but for the time being the services need to be ...
0
votes
2answers
56 views

What is the difference between REN and RENAME?

I typed help into cmd and the following lines were part of the output: REN Renames a file or files. RENAME Renames a file or files. Next I typed help ren and help rename and got ...
0
votes
4answers
80 views

Copy paste a multiline command into command line

I'm writing a doc about installation of my soft and I have to write things like Please do the following: sudo apt-get update sudo apt-get install python-dev cython portaudio19-dev The ...
0
votes
1answer
36 views

Command Line utility for MySQL

I want to download only MySQL command line utility. I tried searching but unable to find. I even downloaded the entire MySQL Community edition and tried installing only MySQL Utility but the installer ...
0
votes
3answers
60 views

How can I use the output of ls/grep as input for pdfunite

I want to use pdfunite to merge several pdf-files into one output file. Since the directory contains lots of different stuff, I thought i could use ls/grep to get the apropriate file-names and then ...
2
votes
0answers
55 views

Cannot redirect .exe output to file

I'm trying to capture a program's output and then write it to a file. Running MyFile.exe -args > foo.txt gives an empty file. The same goes for MyFile.exe -args > foo.txt 2>&1. If I run ...
0
votes
1answer
46 views

How to switch between command-line and GUI in VM on a Mac?

I have installed CentOS 7.1 in VMware Fusion of my Mac. I logged into the terminal (default runlevel 3) and started the GUI using the command "startx". I want to switch back to the terminal. ...
16
votes
3answers
2k views

Command vs program?

I was looking up the difference between adduser and useradd, and an explanation is that useradd is a command while adduser is a perl script. I understand what a perl script is, but what I do not ...
0
votes
2answers
63 views

How can I list the contents of an lrzip file without extracting from the Linux terminal?

How can I list the contents of a lrzip file created via lrztar without extracting it?