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
2answers
22 views

Linux how can I run a process that I can come back to after 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
6 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
33 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
12 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
40 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
52 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
36 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
24 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
13 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
14 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
10 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
votes
0answers
15 views

Windows Command Prompt command that changes volume [duplicate]

Running Windows 7 on an Acer Aspire Timeline X laptop. Is there a way to change the volume using the Command Prompt?
1
vote
1answer
23 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
46 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 ...
-2
votes
0answers
27 views

Watch youtube videos in command prompt

While browsing Linux Stack exchange Came across this question which helps to watch youtube videos in Linux terminal,this brought me few questions Is it possible to watch youtube videos on command ...
0
votes
0answers
11 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
22 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
24 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
22 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
37 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
32 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
71 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 ...
0
votes
1answer
94 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
36 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
63 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
34 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
22 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 ...
-1
votes
0answers
22 views

Unable to Import BCD Backup Using CMD [closed]

I am running windows 7 64bit. I have previously upgraded to win8 and downgraded back to win7 using windows own upgrade software. Had problems with my computer and attempted to rebuild the bcd using ...
0
votes
1answer
13 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
27 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
43 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 ...
0
votes
2answers
47 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
33 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 ...
-1
votes
0answers
22 views

Recursing through folders to find all files with timestamp greater than given date using a .bat

I'm very new to .bat scripting and struggling with this problem: I have a deeply nested file structure (many files and folders) and want to find all files with a time stamp greater than a date given ...
0
votes
0answers
17 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
18 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
42 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 ...
1
vote
2answers
39 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
41 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
26 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
29 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
46 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
20 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. ...
15
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
32 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?
0
votes
0answers
27 views

Merge two pdf files side by side in command line

I have got two pdf files with same number of pages and want compare each page with the corresponding page in the other file. For this I would like to merge say page 1 of File1.pdf with page 1 of ...
1
vote
1answer
20 views

curl capturing http status and timing the request

I have a loop in wich I check urls from file one-by-one and want to get the status header and the execution time of every request as result. I have two curl commands: This one outputs the header ...
0
votes
1answer
43 views

How to run batch file command line argument on another server?

I have Encrypt.bat on \\RDWAPPserver which contains code to encrypt the file and upload it to FTP server by using 2 commandline parameters. Encrypt.bat needs 2 commandline parameters exl: ...
-1
votes
4answers
27 views

Commands in command prompt not working

My command prompt won't run any simple commands such as man, ls or pwd. It only shows the following error: "xxxxxx" is not recognized as an internal or external command, operable program or batch ...
0
votes
1answer
18 views

What is the number after `shutdown /a`?

I noticed when I tried to abort a shutdown it gave me Unable to abort the system shutdown because no shutdown was in progress.(1116) What's 1116? Also I noticed the command runs with -a or /a is ...