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
5 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
14 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 ...
1
vote
3answers
21 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
30 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
30 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
22 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
0answers
13 views

How do I have to config the ffmpeg setting on the linux server? [on hold]

I am writing the code extracting the frame from mp4. I can write this on the wamp server, but I can't run on the linux server. How do I have to config the ffmpeg setting on the linux server? Help me!
0
votes
3answers
22 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
38 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
16 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. ...
14
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
23 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
20 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
12 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
30 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
24 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 ...
0
votes
1answer
24 views

What does qsub --cwd `pwd` mean?

I am newbie to Linux command lines. I just got a queue submission command from others. The command line is as follows: qsub --cwd `pwd` -t 60 -n 1 --proccount 1 --mode c1 --env ...
1
vote
1answer
34 views

In what order does GNU env print environment variables?

When invoked without arguments, the env and printenv commands from the GNU Coreutils print the value of every environment variable. What determines the order in which these variables are printed? ...
2
votes
2answers
73 views

Windows 7 cmd paths are different

I am trying to change the System paths on my computer. For some reason when I open cmd via run my paths are correct as expected. However when I Shift+Right Click in a directory + open cmd window ...
0
votes
0answers
25 views

Change OS X Internet Sharing Wi-Fi hotspot password from terminal

I have Mac and use it as a hotspot. Is there any way I can change the hotspot's password from terminal?
1
vote
2answers
40 views

Ending task in task manager works, but taskkill in cmd does not. Why?

I need to terminate a software every time it is done transcoding a movie file. To automate this I made a small batch script. Therein I tried to use taskkill like this: taskkill /im taskname.exe /t /f ...
0
votes
0answers
26 views

Run Notepad++ macros on command line

I have a lot of txt files in a folder and what I want to do is creating a Python script wich reads all the files contained in this folder and applies to each of them a n++ macro. To do this I need to ...
1
vote
1answer
13 views

Make shell script rerun command on certain user input

I'm writing a shell script that randomizes my hostname but prints the random hostname and prompts me if I want to use this hostname for example NEXTHOST=$(sed `perl -e "print int rand(99999)"`"q;d" ...
0
votes
2answers
59 views

I can't run .bat and .cmd files with start command (Windows 7)

I can run .bat and .cmd files typing his names in windows console, but if I run with start "" file.bat I get this error: System can't run specified program. I have tested with a very simple file ...
1
vote
0answers
12 views

lspci -vvv output CorrErr and UnCorrErr change over time

lspci -vvv output shows flags such as CorrErr and UnCorrErr. I'm wondering if these flags can indicate health of the device and if they change over time. A sample output is below. Thanks. ...
-2
votes
2answers
48 views

How do i hide Windows batch file or hide the password in this text?

I have a code that I save into a text file and label it locker.bat, and it will hide a folder for me. But the problem is I can just right click and click edit and find the password (like down below ...
0
votes
0answers
12 views

Use Rsync to create folder based on filename

I am currently using an rsync command to move files into a remote server based on 2 things, the file extension and how old it is: rsync -avx --timeout=30 --ignore-existing --include '*.txt' --exclude ...
0
votes
0answers
19 views

Add websites to JRE8 Java Web Start exclusions list unattendedly (JRE8)

In JRE8, applets on some sites don't start until exception added for these sites: My question is, how to change these setting during or after silent install to allow browser applets from sites we ...
0
votes
1answer
22 views

grep: display all output but highlight search matches

in bash, if I want to execute a command and only display output lines that matches a certain pattern, I can pipe it to grep, like file testfile hello there my friends command $ cat testfile | ...
0
votes
1answer
39 views

How to execute remote command using PuTTY over Telnet

I was created a .bat file to run PuTTY and it successfully runs. The problem now is, the command line I was key in were not executed, any solution for this? My .bat command is: putty -telnet -P ...
1
vote
1answer
49 views

How to upload file in FTP server using batch script?

I have created batch file called FTP_automation.bat which contains code below SET MyPath=E\PGP\test_pg ftp open 142.245.30.165 21 TESTA9MS test11 binary put %MyPath% quit Pause The thing is when I ...
0
votes
2answers
27 views

Find out PNG transparent background color on Linux

It appears that PNG files contain background color information for transparent pixels. This sometimes becomes noticeable when using that image as a texture with wrong settings. How to find out in ...
0
votes
1answer
15 views

mailto command line not able to set additional parameters

I am trying to create a simple batch file to send an email. I am following steps found online and came up with a simple example like this: START ...
-1
votes
0answers
18 views

How to run continuous lines in Windows command prompt by setting time limit? [closed]

I want to run continuous lines in Windows command prompt or the place where we enter after pressing simultaneously Window LOGO key and R. Please let me know the command or the way by which I can run ...
0
votes
1answer
15 views

How to auto-generate filename of PDF in wkhtmltopdf based on the page title?

I'm using the following syntax to generate PDF from URL: wkhtmltopdf http://example.com/ example.pdf Is there any way to generate filename automatically based on its page title? So I'm expecting ...
2
votes
1answer
20 views

Batch File XCOPY Invalid number of parameters

I'm trying to create a backup batch file, it's been a number of years since I last did one and I'm having a bit of trouble. I am creating a folder in one location with the date and time in the folder ...
0
votes
1answer
43 views

7zip command not extracting to specified output directory

7z x d:\migration\mongo\mongodb.7z o:f:\data *.* -r I'm using this command as part of a batch to extract the contents of a 7z file from one drive (D) to another (F). The folder structure is ...
1
vote
2answers
78 views

Copy all files from a list of folder locations

I have a list of folder locations from which I would like to copy all the contained files at these locations. The list of folder locations are stored on a seperate line within a text file (.txt). All ...
1
vote
0answers
33 views

Why %USERDOMAIN% is not “NT AUTHORITY” for SYSTEM user?

Running the following command set USERDOMAIN set USERNAME in a Windows service will return USERDOMAIN=MY_CORPORATE_DOMAIN USERNAME=SYSTEM . But my service was running in "NT AUTHORITY\SYSTEM". ...
0
votes
0answers
8 views

When opening enginesim, a command prompt flashes and goes away

When opening the turbo.class or turbo.java file for enginesim, found here, the command prompt flashes and then exits. Using the commands java -cp . turbo.class, java -cp . turbo.java, java ...
0
votes
1answer
23 views

Enabling Active Directory Module for PowerShell via command line

As a final step in my Win7 MDT task sequence, I would like to move each computer from the staging OU to the regular OU (so GPO's can be pushed). My deployment techs have proven less than reliable on ...
0
votes
0answers
17 views

How can I input password to manage-bde -pw option via windows powershell

I am trying to encrypt Data volume (for example E:) with the following command: manage-bde -protectors -add E: -pw When I execute the above command, it will ask for the password, so I entered it. ...
0
votes
0answers
47 views

Set Windows 7 to “Performance optimized” under Visual Effects with Batch script

I have this .bat script to start a specific game: @echo off if not "%~1"=="p" start /min cmd.exe /c %0 p&exit start "" "GTAVLauncher.exe" timeout /t 60 /nobreak >nul taskkill /f /im ...
3
votes
1answer
144 views

In Windows avoid nano triggering overwrite mode on cmd line

In Windows 8 I have installed nano, because it's my preferred command line text editor. When I use it, it works normally, just as it would on any Linux distribution: C:\>nano file.c However, ...
0
votes
1answer
16 views

How to locate linux desktop menu shortcuts from command line?

I would like to run one of the shortcuts from command line (when I connect remotely, I don't need the entire desktop, I just want to use a specific app). I can access this shortcut when I run gnome or ...
0
votes
0answers
31 views

Removing special characters (spaces, newlines, tabs) from a text file

I have a flat file (1252 ANSI-Latin 1 encoding) that I wrote out from querying a third party's SQL database that has within it extraneous characters. To make it easier to reformat, I am writing it ...
0
votes
1answer
21 views

How do I correctly return context from a gnuwin32 grep (grep in windows cmd)?

I want to return a line of context after the string I'm searching for as per grep --help Context control: -B, --before-context=NUM print NUM lines of leading context -A, --after-context=NUM ...
1
vote
1answer
33 views

How make Cmder newly opened tabs go to the directory of the already opened tab?

What I want is that when I press Ctrl+T to open a new tab in Cmder, the new tab is opened in the same directory that I was in when hit Ctrl+T. With this I will avoid a lot of cd that I'm doing right ...
0
votes
1answer
19 views

How do I use command line to make an mp3 file an Mp4 file with visualisations? Is it possible to batch convert a folder with MP3's into videos?

I have a folder filled with mp3 files. I would like to render them as mp4 video files with music visualisations - is there a way to do this though command line?