Questions tagged [command-line]
A command line is a string given to a command interpreter that tells it actions to take, such as running programs or copying files. The interpreter processes command lines with escapes and substitutions.
22,651
questions
0
votes
0
answers
4
views
Run cmd command from within R
I want to trigger/run a certain cmd command from within R. I found the functions system, system2 and shell, but am a bit lost on how to exactly use them.
So if I would do it directly in Windows, I'd ...
0
votes
0
answers
13
views
Command Prompt and PowerShell crashing windows 11
Does anyone know a fix for the crashing issue for windows 11? I’ve tried reinstalling, uninstalling PowerShell, updating windows 11, I’ve tried sfc /scannow, Updating environment variables crashing ...
0
votes
2
answers
22
views
How to Properly Use xargs With cp
What I want to do is read a list of filenames from an index file and then copy each listed file to another directory, but I'm having a little trouble properly stringing xargs and cp together.
head -n ...
0
votes
0
answers
5
views
How to run ScrapyRT over Heroku with custom settings?
I have a Scrapy project and over it, I have ScrapyRT to create an API. First, I deployed the application in Heroku with the default settings and with the Procfile as follows:
web: scrapyrt -i 0.0.0.0 -...
1
vote
1
answer
25
views
Removing regedit key via powershell
I have been removing powershell and/or command line like below. My question is : Is there any equivalent inside powershell for /reg:64 parameter ?
CMD version:
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\...
-1
votes
0
answers
13
views
from command line to Graphical nterface debian 10.5 [closed]
hello I recently suscribed for a cloud company and launched application server under debian 10.5
enter image description hereI wanna go from command-line to graphical interface, but I can´t I typed ...
-1
votes
1
answer
17
views
How can configure an NTP server on Linux form command line? [closed]
Hi I want to synchronise the internet time of my Linux pc with a specified server ntp from command line; but I don’t know how to, I usually do it from GUI. Thanks
0
votes
0
answers
20
views
How do you set compile flags in CMake?
I'm writing a project using the Slate linear algebra library in C++, with MKL, MPI and OpenMP as dependencies. Usually, I run my program on a Linux based system with
$ mpicxx -fopenmp -Wall -std=c++17 ...
-2
votes
0
answers
12
views
Github has removed username/password authorization requirement. What is a personal access token? [duplicate]
Github removed the username and password requirement for Github interactions. However, the only remedy they recommended is to us a Personal Access token, yet there is no documentation on how to use ...
0
votes
1
answer
15
views
How to exit telnet session via command line using azure devops
I am trying to test connectivity from source to a FTP server on port 22 using azure devops commandline tool in pipelines
Command for testing: telnet TestSFTP02 22
How do I make sure the telnet ...
-2
votes
0
answers
19
views
Command Line command to delete files [closed]
I am trying to delete files with the command line as they do not appear in the folder GUI. However any command line command that I run is blocked.
I wish to delete these hidden image files. Here is an ...
0
votes
0
answers
5
views
Map a network drive to DomainA from a DomainB computer with a smartcard
I have an account on DomainA, and I have an account on DomainB. I can login to a DomainA or a DomainB computer with my smartcard.
My DomainB computer gets to use the DomainA network and authenticates ...
0
votes
1
answer
60
views
+50
Adding Cargo to PATH
I am getting the following error on Windows: "Cargo, the Rust package manager, is not installed or is not on PATH.
remote: This package requires Rust and Cargo to compile extensions."
I've ...
1
vote
1
answer
33
views
How to merge two JSON array variables?
Most of the googling shows it with files but I want to do it with variables. Tried a few things with the documentation but I can't find the right filter or function or not sure If my approach even ...
0
votes
0
answers
14
views
How can I use the WooCommerce CLI to update a customer's metadata?
I feel like I should be able to do
sudo wp wc customer update 141 --meta_data="[{"key":"test_meta1","value":"test_meta_value"}]" --user=1
However, ...
-1
votes
1
answer
22
views
macOS terminal asking for password every time I run copy command
I'm running a bash command on mac that moves a file to private/etc/app_name/.
sudo cp my_file.cpp private/etc/app_name/
Every time the I want to run the bash file, the OS asks for my system password.
...
0
votes
0
answers
22
views
A prompt of command with fixed position in shell
I find a way to fix my command prompt to bottom of the terminal and log above it like there:
Fixed position command prompt in Node.js
I use serverline in Node.js, but I want to take an universal tool ...
-2
votes
0
answers
32
views
Passing values to command line from a function-C language
I am trying to find out how to pass output value of a function into command line in a C file. The name of the variable is "Cext", "Cabs". The default behavior of the program is to ...
-1
votes
0
answers
27
views
How to create password protected zip file in windows using cmd [closed]
I am looking to create a password protected zip file in Windows 10 using command prompt.
The closet I've got is this powershell script that I am then calling using the cmd which is not ideal
Compress-...
1
vote
1
answer
32
views
Using Git bash for python installations and task
I have been given a windows laptop at work to work on a web app using flask which involves a little bit of computer vision and nlp as well. I wanted to take this chance to transition to the command ...
0
votes
0
answers
16
views
Batch file is not running with Farsi characters
We need to map a network location on several machines so we wrote a simple batch file. The network location name contains Farsi characters and the batch file is saved in utf-8 encoding.
The command is ...
0
votes
2
answers
46
views
How do I put user input into an array of strings without a scanner in Java?
For an assignment, I have to create an array of names and the number of names and all of the names have to be on the command line. The number of names in theory is infinite. For example, java ...
0
votes
1
answer
35
views
Use custom service in a Symfony Command
I have created a class with a PHP function I would like to run from the command windows.
Therefore I have created a class extending command but I'm having trouble because I have to call the ...
0
votes
1
answer
30
views
How to run a function in a PHP Class from Command Line (Symfony)
I would like to run my function hashPassword, which is in my class, from the command line.
I have found many post on the topic but I never succeed to make it run apparently.
How should I run it ?
<?...
0
votes
2
answers
58
views
Neovim: how to send keys to terminal emulator
When I open up a nvim terminal emulator and enter the following command, trying to execute command 'python':
:normal! ipython
It turned out the register content is pasted onto the screen, as if 'p' ...
2
votes
2
answers
36
views
How to wait until all commands are executed and only then have a prompt to restart your PC in powershell script?
I am writing a powershell script for enabling some Windows Features. It looks like something like this:
...
Enable-WindowsOptionalFeature -Online -FeatureName "IIS-WebServerRole"
Enable-...
-4
votes
0
answers
20
views
Configuring a wifi adapter error (Tp-Link TL-WN722N V2/V3) [closed]
I'm trying to configure the adapter on kali linux 32bit running on a VM, though I guess I faced multiple troubles during the process of making the version of the adapter support the mon mode.
first ...
0
votes
0
answers
20
views
windows kernel: reading/splitting command-line arguments from processes
I'm working on a windows kernel driver that reports the command-line arguments of started processses.
While getting the command-line string is easy, I'm having trouble interpreting it as separate ...
0
votes
0
answers
22
views
How to automatically pass my password in multiple password prompts in command line?
I'm using ubuntu and i want to pass my password in multiple password prompts in single command only. I know how to deal with single password prompt.
For example:
echo password | sudo -S MyCommand;
...
-2
votes
0
answers
15
views
How to Fix Windows Cannot Open this type of file (.msu) [closed]
Can U please tell me a way to fix it
Windows Cannot Open this type of file (.msu)
And see command prompt also
C:\Users\Hp\Downloads>wusa.exe W2K12-KB3191565-x64.msu
'wusa.exe' is not recognized as ...
0
votes
1
answer
19
views
csv export failing when executing jupyter notebook from command line
I have a jupyter notebook that i am executing from command line using
jupyter run Anomaly.ipynb
now in my notebook i am exporting the dataframe as csv
df.to_csv('exceptions.csv')
Query- when I run ...
0
votes
0
answers
38
views
Using CMD How i create a new file that combines lines from from two other text files?
Here is what I am trying to achieve...
File1.txt
I love
File2.txt
Cake
Cheese
Money
File3.txt aka results.txt
I love Cake
I love Cheese
I love Money
I found the script below from another post, but it ...
0
votes
0
answers
14
views
ElectronJS: Window always-on-bottom (inverse of top-most / widget)
I am currently creating a system monitor application for which I would like it to work as a widget.
Please see example of my application below:
ElectronJS system monitor Widget
For this application I ...
1
vote
0
answers
51
views
Command Prompt / Anaconda Command Prompt not opening in Windows 11
I am doing a research project that involves me running terminals in the Anaconda Command Prompt. I was able to install and work the current version of Anaconda (4.12) and get the command prompt ...
0
votes
0
answers
15
views
Error token on nanosecond calculation shell script [duplicate]
Im tasked with calculating the average time in nanoseconds a Fibonacci sequence takes to run. Once I have all the variables, if nanoseconds starts with a 0 i'm assuming it interprets the first 2 ...
0
votes
0
answers
28
views
How to fix "Powershell needs Windows management system 4.0'
I want to know
How i install Powershell in my win 10 pc because it dont came installed in it
Please help me. I will be very thankful to you
-1
votes
1
answer
52
views
How to install a custom certificate in Symfony server?
With server:ca:install on the Symfony console an SSL certificate can be generated and installed.
Is it possible / How to install an existing one, created separately (instead of the auto-generated one)?...
0
votes
0
answers
14
views
Notification in CURL command
i am running one curl command to generate token. This command i am running on commandline.
Is there any way to have notification (in email or like prompt or popup) if anyone make typo error?
Example ...
0
votes
1
answer
16
views
Jmeter : How to overwrite existing result file (csv) and html report when generate report by cmd [duplicate]
C:\apache-jmeter-5.4.3\bin>Jmeter -n -t "C:\jm\ReservationManual.jmx" -l "C:\jm\Result\result1.csv" -e -o "C:\jm\Report"
I used above command line code to generate ...
4
votes
7
answers
170
views
Wrapping delimited lines, retaining first column, with minimum final length
Looking to split up lines of content, retaining a headword.
I do a ton of text processing, and I like to use unix one-liners because they are easy for me to organize over time (vs. tons of scripts), I ...
0
votes
1
answer
21
views
Querying Git status with Subprocess throws Error under Linux
I want to query the status of the git repo using python. I am using:
subprocess.check_output("[[ -z $(git status -s) ]] && echo 'clean'", shell=True).strip()
This works fine on ...
1
vote
1
answer
19
views
Getting this error on running js using node : Uncaught SyntaxError: Unexpected identifier
The below code works fine in browser but when I try to run via node (in command prompt), it give error : Uncaught SyntaxError: Unexpected identifier
Please find the screenshot attached for an error.
...
0
votes
2
answers
27
views
SSL error only in python command window with apify request
I am trying to use endpoint from apify.com. When I run my request in web browser with token everything is fine but if I run my request via requests library from python console I am getting following ...
0
votes
1
answer
29
views
Why does "ls 1>&2 2> /dev/null" output something to my console? [closed]
I am trying to understand piping, and get confused about the result of the command below.
% ls 1>&2 2> /dev/null
Applications Users cores home sbin var
Library ...
1
vote
1
answer
44
views
How do you enter command line arguments in SPIM
I am trying to make programs using argc and argv in MIPS simulator SPIM.
This is my code:
.data
nl: .asciiz "\n"
.globl main
.text
main:
# print argv[0]
lw $a0, 0($a1)
li $v0, 4
...
0
votes
1
answer
21
views
Add Table To Markdown File Via Windows Command Line
I'm trying to append a table in a markdown file via command line. First, I make a new directory, cd into the directory, and then create an MD file, and then add a table. I'm getting an error with this ...
0
votes
1
answer
36
views
linux "enable -n xxx" command works in terminal but not when put into a script
I've found a very strange issue, when in linux terminal I type "enable -n trap", it would disable the trap linux builtin command. But if I put it into a script like
#!/bin/bash
enable -n ...
0
votes
0
answers
20
views
Python Command Line application Issue
I am referring to an example from here: https://github.com/jgehrcke/python-cmdline-bootstrap
I am able to run the setup correctly. When I run the python -m pip list command, I do see the package ...
0
votes
0
answers
13
views
AWS Profile on command line prompt
A common prompt for the command line is the following:
username@host:~$ Here goes your command
With oh-my-zsh you can tune the command line with the current git branch and more tuning options and ...
0
votes
1
answer
18
views
Local module not found in Virtual Environment
Here are the steps I took:
Create virtual environment called 'env' with :
py -m venv env
Activate virtual env
.\env\Scripts\activate
Install dependencies with a .cfg and .toml with:
pip install .
...