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
8 views

I can't get Windows 8.1 to execute batch files through the interface

(moved from stackoverflow where I mistakenly placed it in the wrong spot) Windows 8 has decided that a .bat file has no association. I can't choose to associate it with cmd.exe from the open file ...
0
votes
2answers
12 views

How to get `make` to recognize alias command

I am installing MOOG, and when I make -f Makefile.maclap I get the error $ make -f Makefile.maclap g77 -w -c -o Abfind.o Abfind.f make: g77: No such file or directory make: *** [Abfind.o] Error 1 ...
0
votes
0answers
6 views

“fortune” command no output when running as daemon

I execute the fortune command from a daemon, but I don't get any output. If I run the bash-file from command-line I get the output without problems. echo "$(fortune)" The daemon is the Telegram-CLI ...
2
votes
1answer
28 views

How to rename an executable from its details

I have loads of .exe files that got renamed to file1.exe, file2.exe, etc. When you look at a file's Details under Properties (in Windows Explorer), it has the original file name under "Product Name". ...
0
votes
2answers
27 views

Shell script to pass multiple arguments with options in command line

I have the script, I need to execute this script like this: ./create_endpoint.sh --controller-ip 10.20.20.1 --controller-name User1. But its executing like this: ./create_endpoint.sh 10.20.20.1 ...
0
votes
1answer
55 views

Trouble deleting registry using CMD

I am trying to delete following registry via CMD but getting "ACCESS DENIED" HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Pastel The above registry cannot be deleted manually as it gives error ...
0
votes
0answers
12 views

How to login to windows programatically automatic after a certain time

I want to make a program so that after manually login to windows I will start a download manager then it is preconfigured to run a file.exe after download finish. During download, I want to lock the ...
1
vote
0answers
10 views

How to extract the Subject Alternative Name from a CSR by just using the openssl command?

I would need to extract the Subject Alternative Name from a CSR. Is there any way I can extract this other than using the "-text" in openssl req -in test.csr -text -noout? (Maybe similar with the ...
-6
votes
0answers
36 views

My LEAD architect, NOT a developer doesn't believe there's NOT a GUI for JASMINE, GRUNT, KARMA and PHANTOM [on hold]

I have a lead architect that laughs at me when I tell him POINT BLANK, in the four years I've been using GRUNT/KARMA/JASMINE/PHANTOM and NODE, and in my 30 years of being a developer, I have NEVER ...
0
votes
0answers
14 views

windows command line find file, untar

I want to untar a file I just downloaded in windows 7. I am in the directory, but there are too many files and the name is too long to simply type out. How would I do this in the command line? If this ...
2
votes
1answer
24 views

Command on new line

I have the following command: cd ../../game ^ electron src that I need to run. Which basically means step up two folders from our current directory then into the game folder and call electron on the ...
1
vote
2answers
40 views

How to check version of IE on Windows 7 with PowerShell?

I want to check which version of IE I have on my Windows 7 machine. I would like to do this with the command line, either through Command Prompt or PowerShell. Thank you!
0
votes
1answer
26 views

Issue when launching url from command line in IE8

If I paste the following url directly into the address bar of internet explorer http://maps.google.com/maps?layer=c&cbll=56.18231,10.20435&cbp=12,70 the related google maps streetview is ...
1
vote
0answers
21 views

command to wake up the windows system after sleep command

From C# program I want to call windows command prompt and make the system to sleep and after few seconds I should wake the system. I am successful in making the system sleep but I can't wake it up ...
1
vote
2answers
19 views

Run multiple commands automatically after opening command prompt [duplicate]

So I'm really new to this code thing. And i would like to know, how to automatically run commands when command prompt is open. So, what i usually do to run my application is that i open command ...
1
vote
1answer
18 views

Installing the wkhtmltopdf command line

I'd like to make a pdf out of an webpage. For this purpose, I am trying to install the command line wkhtmltopdf on my Mac. I tried brew install wkhtmltopdf and got Error: No available formula for ...
0
votes
1answer
15 views

When vim-ing a folder, how do I make a new file?

I looked around a bit and couldn't find anything on this, but here's the scenario: I vim a folder, to see what's up. I navigate to another folder via j/k/arrow keys/whatever and hit enter I realize ...
0
votes
0answers
11 views

Proftpd File Permissions Issue

I'm using proftpd on a Ubuntu server and the FTP is working on a directory with 777 permissions. Files are uploaded as ftpuser:ftpgroup which is correct. However, on a directory owned by someone else ...
0
votes
1answer
12 views

Variable as argument to Wine

The variable $INPUT_FILES in Case 1 has the same content (string) that is used in Case 2. Why in Case 1 I have problems with spaces in the name "2015 01 09.1.txt", but in Case 2 not? How can I fix ...
1
vote
2answers
43 views

Checking UAC Elevation of Running Process from Command Prompt

How can I use the command prompt (cmd.exe) to check if a process is running with UAC elevation / elevated privileges? If I were to use the Task Manager (taskmgr.exe), I could check by adding the "UAC ...
0
votes
1answer
32 views

how to concatenate files within each subdirectory using windows command prompt

I'm a newbie, a grad student, and frustrated!! I have tons of directories containing subdirectories and each subdirectory contains a bunch of .irf files (these are a DVR-type file). I am trying to ...
0
votes
0answers
15 views

Making the windows command promt title display the current folder? [duplicate]

Is it possible to have the Windows Commmand Prompt title display something other than C:\Windows\system32\cmd.exe ?
1
vote
3answers
45 views

Running a Python script from the “Run” prompt

I thought this would be easy, but I've been struggling for a while. I have a Python script on my Windows machine called "myscript.py". I have it in a folder that's on my PATH, and I've added the ...
1
vote
0answers
15 views

Get system volume from command prompt

I'm using NirCmd http://www.nirsoft.net/utils/nircmd.html utility to set the volume via the command prompt for a game but need to know what the current volume is upon the app start up. I found this ...
0
votes
0answers
19 views

Upload data in .txt file to SQL database through ftp in command line

I have a table in .txt file with header, and an empty table Final_Beta_Table with header only in SQL database. It's a NETEZZA database and there are many other tables in it. How can I upload the .txt ...
0
votes
3answers
39 views

How to append multiple .txt files to one file without header line

I have 100,000 .txt files with format below: bygrp,colnum,beta 100005,1,0.629519434191718 100005,2,-0.500000000026516 100005,3,0.560850895321124 100005,4,0.119624318119292 100005,5,0.257676682753309 ...
0
votes
1answer
74 views

How to install software using CMD on Windows 7? [closed]

Is it possible to install a software using CMD on Windows 7 without using the GUI install wizard. I know about "Chocolatey" but seems it works with listed software only. Would using something like ...
-2
votes
0answers
49 views

*.bat script : find in “xxx” folder today files that containing “yyy” string inside and copy thoes files to “zzz” folder [closed]

Please script in batch : find in "xxx" folder a today files that containing "yyy" string inside of them and then copy those files to "zzz" folder i guess it can be done with forfiles and findstr ...
1
vote
1answer
20 views

Windows: Run script on cd

On linux, I've got a number of scripts running upon changing to a directory. Tasks like updating repos, rotating logs, etc, are decided through a small bash script that overrides bash's "cd" and runs ...
6
votes
1answer
120 views

How does one browse a website using Telnet?

When you connect to an open port 80 (HTTP) through Telnet, shouldn't the client display a plaintext version of the site? All I get is a blank screen, and then the client disconnects. I know you can ...
2
votes
0answers
13 views

Start Appium server at system boot (MacOS)

I'm trying to setup Appium server to stat automatically after system startup. Also I'd like it to restart after a crash. Appium was installed as a npm package and it launches and works fine when I ...
1
vote
1answer
13 views

Construct command for bash exec

I have a shell script that runs exec to replace itself with another command. The other command takes some optional arguments. exec mycommand $ARG1 $ARG2 $ARG3 Any of these arguments could be ...
2
votes
2answers
23 views

Trying to pass variables to Send-MailMessage arguments and failing miserably

So I have a problem. I’m trying to write a scripts that pings a list of hostnames in an external .txt file, and send an email alert if one of them goes down. I’m having a few problems with it, but ...
1
vote
0answers
17 views

php.exe can not find .dll files

I recently installed xampp which of course installs php. I want to run php from the command line so I added it to the PATH variable in windows using setx path ... This worked well so that now I ...
3
votes
2answers
49 views

How to open a batch file and execute a command AFTER opening command prompt

I am trying to create a batch file that first opens command prompt and then executes "prompt $t$gEnter Command Here$g". I have tried starting it with "%windir%\system32\cmd.exe" and then using ...
0
votes
2answers
35 views

Add a newline after each terminal command except at the beginning

I want to add a newline after every command I enter in the terminal. Right now, I have this line in my .bash_profile file: export PS1="\n\u$ " This works as expected: However the issue with ...
1
vote
1answer
64 views

How to omit characters at the beginning of a file name while renaming it in DOS?

I would like to know how to omit the first character of a file name while renaming the file in DOS. In my case I have bunch of files like: #test1.txt #test2.txt #test3.txt #test4.txt #test5.txt I ...
2
votes
1answer
26 views

Batch script is adding funky characters when a command gets executed

I have this script and when I try to execute it, a bunch of random symbols show up in the command prompt: cd "X:\folder\subfolder" svn update pause I have no idea what those symbols are called or ...
0
votes
0answers
12 views

Java server started from putty with screen cmd gets unresponsive over night

I have a java server that I start on a centos box via putty. I use the screen command like this: screen -S name java -cp desktop-1.0.jar com.aperico.game.skellitown.desktop.DataServer & Ctrl + A ...
0
votes
1answer
38 views

Symlinks over SSH: Why am I unable to access files/directories in parent directory if traversal to current directory was through a symlink?

NOTE: This behaviour is observed via remote access using SSH. I noticed that if I have moved into a directory using a symlink that I cannot use the .. entry in the directory listing to move back into ...
1
vote
0answers
34 views

Delete all files and folders in a specific directory older than 1 day except one folder with bat file using forfiles

Hello I want to delete all folders, subfolders and files older than 1 day in a specific directory and leave one folder untouched with the forfiles like the command below: forfiles /p ...
-2
votes
2answers
40 views

How can you remove the need to type the full name of an .exe in cmd to run it? [duplicate]

OK, so you can run something like start iexplore in cmd and have it run internet explorer. Is there a way to allow the same sort of behavior with something like, javac.exe (or some other utility ...
-3
votes
1answer
24 views

What is command prompt's console name? [closed]

Is there a "console" in command prompt? There are consoles in browsers, but what about command prompt? I tried console.log, but it didn't understand what "console" meant. I have Windows 7 ...
0
votes
3answers
36 views

Is it possible to cd with command line through a folder to a shortcut

I have a shortcut to a folder on my Desktop (as I don't store files directly on it). Is it possible to get to the directory the shortcut points to when I am in the desktop on command line? I would ...
2
votes
0answers
22 views

Program options have sometime one or two dashes (-foo, --foo) [duplicate]

In gcc every command line arguments have one dash. In some other tools, options that are not a single character have a two dashes prefix. Why is there two standards, which one is the most common? ...
1
vote
2answers
28 views

understanding tilda,slash command in bash

I have confusion in the meaning of command ~/ if x is a directory, then what is the meaning of ~/x in bash. Please guide me
0
votes
1answer
17 views

How to delete the profile AD attribute using dsmod or similar?

As part of a user management batch script, I need to delete the profile value from an AD User object. The syntax I'm using is as follows: dsquery user -name TEST | dsmod user -profile "" It ...
2
votes
1answer
39 views

Function using watch on command with command line arguments

I want to run watch on a command which uses an optional command line argument, like this: function queue() { watch -n 10 'squeue -p ${1:-default} -o "%.8i" ' } but the command-line argument ...
1
vote
1answer
31 views

Is there a way to get the current volume output from command-line on Windows?

I'm looking for the current actual output levels, not what the volume is set to. Ideally this would be a command-line tool, but if there's so way I could generate one myself with APIs, that would ...
0
votes
2answers
35 views

Passing variables with space to the command line as admin

strong textscript.bat placed on the sendTo folder(file setted running as admin from properties -> advanced -> run as admin) @echo off cd %~dp1 echo %~dp1 echo "%~1" pause if i pass a parameters ...