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

Log Commands Run Over SSH on Client Side

I am looking for a way to run SSH (OpenSSH in particular, but not necessarily) and log all commands that I run against the remote, to a file locally. Running each command as an independent ssh ...
0
votes
2answers
11 views

grep and sed with pipe from tail -f appears to be caching

I am trying to get a working system to monitor special logs. I usually just want a very specific pattern which I extract using grep and a pipe from tail -f. I have noticed that grep does not output ...
1
vote
1answer
16 views

Copy Command with “%” in path name

I am trying to write a bat file to copy some files into a new directory (which exists). Here is my command: copy ".\050-9800-JJJ-DSC-BAW-MEE-00019-01*.pdf" "T:\201201.00 TCO - Tengiz, ...
2
votes
0answers
24 views

What are the underlying Windows7 mechanics that are responsible for opening selected files via key 'Enter'?

I need to create a batch script that opens n files, of same type and same suffix, with program p, without creating n instances of p (i. e. use multiple tabs instead of multiple instances). For some ...
0
votes
3answers
32 views

How do you write to a file within the command line?

Specifically mac, but for future reference for those that come across this post, this could be on any OS. So am learning the command line, and one utility (perhaps the only one) which seems to be ...
1
vote
2answers
35 views

Why does the set command display more environment variables than the environment variables gui?

When I run the set command in command prompt the first variable I see is But when I open my Environment Variables GUI I don't see ALLUSERSPROFILE Why is that? There are numerous other ...
0
votes
0answers
21 views

'.' is not recognized as an internal or external command

def evaluate(str, par): return (os.system("./LKH %s" %par) - swap_2opt_solve_str(str)[1])**2 I have an executable lkh file in the directory. However when my program runs this function, it gives the ...
0
votes
0answers
7 views

How to make Chrome when launched by other programs use my command lines i defined?

For security concerns, i've set chrome to launch with this: --cipher-suite-blacklist=0x0005,0x0004,0xc011,0xc007 --ssl-version-min=tls1.2 I use Windows 7, and when i click it from my TaskBar it ...
0
votes
1answer
7 views

How to access Kitematic host computer's command line

I installed Kitematic to my Mac. Kitematic installs a Linux server to VirtualBox to work as a Docker host and has a simple GUI for the basic Docker tasks etc. Now I'm wondering, how to have command ...
2
votes
2answers
20 views

Using notepad++ command line commands

I am trying to use the -l parameter in a notepad++ command line to open a file and have the highlighting be set to highlight for C++. I typed in the command: notepad++ -lC++ file.cpp For some ...
2
votes
3answers
30 views

Parse string using batch script

How can I parse string using batch script? Goal is to save in a array everything under Import: and strip out #head for example --> //MPackages/Project/config/abc.txt and ...
1
vote
1answer
26 views

What is the best policy for running GUI programs from CLI to silence non-error messages?

When, on Linux, running graphical programs (such as Sublime Text for example) from the Terminal, the program runs fine but logs on the console messages that are not exactly failures, nor useful log ...
-1
votes
1answer
22 views

Should I use Git from Windows's command prompt?

I am new to Git and learning it these days .I was installing git and it asked me to choose any of three option that whether I wish to use it through gitbash or through cmd and so on .I was confused to ...
1
vote
1answer
26 views

How can I edit local Group Policy settings using command line?

I'm attempting to throw together a script for work that allows BitLocker without a compatible TPM. The setting is "Configuration \ Administrative Templates \ Windows Components \ Bit Locker Drive ...
0
votes
1answer
29 views

How to run Windows SDK Command Prompt from command line?

I have instruction to run Select Start --> All Programs --> Microsoft Windows SDK v7.1 and open Windows SDK 7.1 Command Prompt. which is obsolete for Windows 8.1 I have installed something ...
0
votes
1answer
30 views

Windows: How can I use the command line to set registry permissions

OS: Windows 7 Desirable Method: Command Line Other acceptable methods: VBScript How can I use the command line to set registry permissions? I found the REGINI utility, but I'm not having any luck ...
3
votes
2answers
31 views

Command Line Sort Files or Directories by part of their name

How do I sort files or directories by part of their name, specifically the element contained in the parenthesis or separated by delimiter? I am after two separate solutions one for directories with ...
0
votes
1answer
22 views

Python logging class not working when sending stdout to /dev/null

I have a Python 3 script that has logging enabled (for debugging purposes). Whenever I run/execute this script it is working fine and the logfiles are created. I've also created a setup.sh-bash ...
0
votes
1answer
27 views

Registry or command line - Set fixed position of pinned task bar item

I am installing Google Chrome in addition to Internet Explorer 11 on several Windows-7 machines. After the installation, I would like to have Google Chrome set to the same position (#2) in the task ...
2
votes
1answer
27 views

Print line for word found in file in directory

Hello i am using this line find ./ -iname *txt | xargs grep "ququ" -sl>holis.txt To find "ququ" text in a txt file and then write the file name that does contain such word in the txt file, ...
0
votes
0answers
7 views

How to have an executable file run without cmd? [migrated]

Right, so I'm in a little bit of a pickle here. I've been coding for years (non-professionally, only algorithms for competitions, I'm still in high school) and I tried to create my very first actual ...
1
vote
2answers
29 views

Given key-value content, how do I group values by key and sort by value?

I've the following sample input format (file or stdin): key1: 1 key2: 2 key3: 3 key1: 4 key2: 5 key3: 6 Is there any few-liner which can group values based on the key and then sort? Expected ...
-2
votes
0answers
29 views

Best program or IDE to Create Java games? [closed]

I am searching for a program to create Java games. Aha not much to it, Aymen **PS preferably 2d games **
-1
votes
1answer
16 views

How do I reenable mkdir and other commands from the nav bar win7

This was in another thread as a comment, but I don't have the rep to post there...Pretty sure it hasn't been posted as a question yet.. I KNOW you USED to be able to do dos commands through the nav ...
0
votes
0answers
4 views

download complete when run from command line but not complete run from launchd

Curious thing. I have a Python script that I've set up through launchd on my Mac to run every 5 minutes. All it does is download a file from a website. My issue/question is that when it's run that ...
0
votes
1answer
16 views

Appending an extension to a new file created with xcopy

I've been having problems with xcopy in the past few days, and I'd like to stop ripping out my hair. In my DOS class, a portion of an assignment requires a file to be copied (with xcopy), and the new ...
1
vote
1answer
39 views

Making Batch to run Windows PowerShell, then have it run some text

I am newer to making batch files. I am trying to run a command that will open windows PowerShell in a specific directory, and then once there to run a command. So far I have the following. ...
0
votes
1answer
22 views

Extending the command-line search path without editing the PATH variable

I want to extend my system search path without appending new directories to %PATH%, I am aware of the App Paths registry entry put that entry is only being accessed when using ShellExecuteEx which the ...
1
vote
2answers
39 views

How to parse a space delimited text file

I have a text file like this: Fam1000: CMIN|CMIN_9-RA CMIN|ABC_7-RA GCLA|EFX5.1 GCUC|GCUC_7-RA Fam1001: GCLA|EFX6.1 GCLA|EFX7.1 Fam1002: GCLA|EFX5.1 GCLA|EFX2.1 GCUC|GCUC_8-RA GCUC|GCUC_8-RA Fam1003: ...
0
votes
1answer
16 views

How can I append text in the middle of a pipeline?

With cat its possible to append a file to the data passing through a pipeline: foo | cat - somefile.txt | bar Is there a command that lets me append text without using an intermediate file? foo | ...
0
votes
0answers
28 views

Ask Firefox to export current Bookmarks to Json in CMD line

I can do this manually in Firefox when the browser is open (holding Alt key to show menu) and navigating to Bookmarks > Show All Bookmarks > Import And Backup > Backup This will generate a ...
2
votes
1answer
25 views

Batch command to archive folders with content using WinRaR

I have lot of folders in the root "C:\Test\Archiv\" (more than 1000). To be more specific, I get one every hour. They are named as following : ay %year% m %month% d %day% h%hour% In each folders are ...
0
votes
1answer
14 views

Is it possible to filter attribute of dos command output?

Below is output of this command netsh interface ipv4 show interface ...
1
vote
0answers
20 views

Can Dropbox under OS X be accessed from a command line?

I want to access Dropbox in my Mac from a remote location with ssh. Is there any way to access Dropbox from the OS X command line?
3
votes
2answers
74 views

How can I make my computer do a repeated series of tasks by a script file on Windows?

When I want to update a web project of mine, I have to do the following tasks all the time: Open cmd.exe. cd into working directory of project. Run localhost command in cmd.exe (~ jekyll s). Launch ...
1
vote
1answer
20 views

Windows 8 Can't find executable in path with “where” command

I added the following line in my System Variable Path "C:\Program Files (x86)\FontForgeBuilds\bin" I can then run fontforge: C:\Windows\system32>fontforge -v Copyright (c) 2000-2014 by George ...
3
votes
2answers
145 views

Enable Remote Desktop in Windows Firewall from command line

note: #command-line tag do not imply batch-file-only, I will accept a PowerShell script or any freely available utility. tl;dr how to unattendedly transform firewall rules exactly to state GUI ...
2
votes
1answer
13 views

Wrapping `time` (and similar keywords) in call from another script

I have a Bash script (let's call it clock) which should work as a wrapper similar to the time keyword in Bash, e.g. clock ls should do something and then run ls. Here is an example of this script: ...
0
votes
1answer
33 views

PowerShell script to decrypt file

Can some one help me with this command to decrypt files using powershell? echo YOURpassPHRASE | gpg --keyring "C:\directory\filepath" --secret-keyring "C:\directory\filepath" --batch --yes ...
0
votes
3answers
41 views

How to print a file to the printer running on standard TCP/IP port?

can any one tell me how to print a file using command in windows? I tried using below command print /D:\\localhost\myprinter testfile but its giving the error: unable to initialize device ...
7
votes
4answers
335 views

Running `exec` with a Bash built-in

I defined a shell function (let's call it clock), which I want to use as a wrapper to another command, similar to the time function, e.g. clock ls -R. My shell function performs some tasks and then ...
0
votes
0answers
31 views

How to print a file from command line in Windows? [duplicate]

I want to print a file (any kind of file) to the printer which is running on my local machine's standard Tcp/Ip port 8100 (not on lpt or COM etc). Can any one give me the exact command to do same?
2
votes
1answer
35 views

7zip - Command Line: how to set output path?

I want to compress all HTM files in D:\HTM\ to an archive called comp.7z which is created in D:\HTM\ directory, so I do the following: 7z a -o "D:\HTM" comp.7z "D:\HTM" and get an error, exactly as ...
1
vote
2answers
44 views

ipconfig from the CMD opens and closes another CMD

I tried running ipconfig from CMD, both elevated and not, but instead of displaying it's output inline, it opens another CMD and closes it immediately after the output is listed. I've tried running ...
-2
votes
2answers
38 views

Converting an ELF executable (Linux) into a PE.exe (Windows)

I am a newbie when it comes to using machine code files!!! I need to use a machine code executable obtained as ELF (Linux) into an exe file for Windows. I have tried 'objconv' but, though the format ...
1
vote
1answer
71 views

A .bat file to close two services running in background

I have a Windows 7 computer with three accounts (in hierarchical order): Administrator (with password) type Administrator Guest (with a password different from that of Administrator) type ...
1
vote
0answers
36 views

make a c program run without opening a cmd window [closed]

how can i make a c program run without opening a CMD window, i tried -mwindows flag, used WinMain Entry instead of main, but without results, the cmd still pop up. i tried ShowWindow function by ...
1
vote
1answer
51 views

Why doesn't my Python script save the file when I use Task Scheduler?

I have a Python script that uses csv.writer to create a csv file. This works fine when I run it from the command line, but no file is created when I run the script using Windows Task Scheduler. The ...
1
vote
0answers
9 views

Opening a “Unicode little endian without BOM” file from the command line with WinMerge?

I have a pair of "Unicode little endian without BOM" text files that I would like to diff each another via the command line. Unfortunately when I open them using the commandline in Winmerge they come ...
0
votes
1answer
28 views

Winrar command line compression ratio

I have a Winrar command line that look like this: "c:\Program Files\WinRAR\WinRAR.exe" a -afrar -s -m5 "e:\output.rar" "e:\foldertozip" The folder that I am compress by default is 9.08MB. The ...