23,369 questions
2
votes
2
answers
104
views
Why is there no need of double quotes around a command with a space in it
I want to create a shortcut which
(1)opens cmd.exe in a specific folder, then,
(2)runs within that terminal "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64....
0
votes
1
answer
47
views
Visual Studio munges characters in build event command lines
In a command line of a pre-build event in a VS 2026 C++ project, I have the line
git log -1 --date=format:%G --output=year.tmp --format="%cd"
which is supposed to write the numerical year of ...
0
votes
1
answer
109
views
Possible bug in gcc11 parsing include paths?
With gcc11 (11.3.1) I'm seeing a strange behavior where it seems that -idirafter path takes precedence over -iquote path if path is the same for both options.
Consider:
// test/foo.hpp
#pragma once
...
3
votes
3
answers
151
views
splitting a FASTA file into a new FASTA file based on the top 100 transcripts
Essentially, I have a large FASTA file with over 100,000 transcripts in it, and I want to take the top 50 longest of those. After doing this:
awk -vRS=">" -vORS="\n" -vFS="\...
1
vote
2
answers
137
views
System.CommandLine root command option handler fallback
I want to add a Option<bool> to the root command but still show the default output when the option is not provided.
RootCommand rootCommand = new RootCommand("My root command");
...
0
votes
1
answer
111
views
how to pipe pasword string to another cmd get started with golang [duplicate]
i want exactly to run postgres backup using pgdump_all, but when starting it using cmd package in golang it shows in terminal it need postgres password to run the job , i searched previously and find ...
0
votes
0
answers
62
views
kotlinc cant compile file with more 1 path to .jar in -cp or -classpath flag
Problem description: When using the Kotlin compiler (kotlinc) of any version from the command line (not IntelliJ IDEA, but a separate folder with a .bat file), and when specifying multiple libraries (....
2
votes
1
answer
91
views
withr: suppress message from `deferred_run` when called via `RScript`
Let's assume I have the following script:
msg.R:
library(withr)
local_options(list(whatever = 1L))
suppressMessages(deferred_run())
I invoke it from the command line via
Rscript msg.R
I would have ...
1
vote
0
answers
118
views
I have a problem using the command line and Raku
This screen transcript pretty much says it all:
ftype
PerlScript=C:\strawberry\perl\bin\perl.exe "%1" %*
RakuScript=C:\rakudo\bin\raku.exe "%1" %*
assoc
.pl=PerlScript
.raku=...
0
votes
1
answer
45
views
how to insert a command-line program in the package
I have a command-line program, say "myprogram.exe" installed in the resources directory of my nodejs-electron application.
I run my electron application via "npm start" with no ...
1
vote
1
answer
34
views
Using sort with numeric columns separated by letters & underscores
I'm trying to sort phrases such as the following:
a12_b7
a12_b11
a5_b3
a5_b30
a12_b10
using the numbers following the letters, lexicographically. For the example above, I expect the result to be:
...
3
votes
1
answer
74
views
Why is appending to User Environment Variable PATH without duplicating is not working for the last path in Windows 11 command line?
I looked through a few solutions here and found an almost working script to append to the user Environment Variable PATH without overwriting the existing path and not clutter it with system's EV's ...
0
votes
1
answer
113
views
A PowerShell script to list all files and folders within a directory structure to a text file
PowerShell Version 5.1.19041.6093
this script creates the text file with the structure of all folders and files inside but also give this error.
PS D:\Csharp Projects\Slicer> # Get the current ...
0
votes
1
answer
207
views
WinSCP "Host key does not match configured key fingerprint" in script
Using the GUI, I can connect to the server and transfer no issues. I generate the open script while connected via the GUI, but when used in a script (Windows bat file) it gives the error:
(sensitive ...
1
vote
2
answers
34
views
Unit test python for gatttool commands?
I am developing in python. My code calls terminal commands. I want to make unit tests for those functions. How do I test if terminal commands are working properly? Also I establish a bluetooth ...
0
votes
0
answers
83
views
Lstmtraining Tesseract-OCR
I followed the steps for fine-tuning Tesseract for handwriting recognition. I have the character images and the corresponding box files. Then I generated the .lstmf files, followed by the lstm_train....
0
votes
1
answer
79
views
Command Line Client using CocoaMQTT does not finish connecting to 3.1.1 MQTT Broker
I do want to write a command line client using the CocoaMQTT package, connecting to a 3.1.1 broker. My problem is, that the connect() call returns „true“, but the connection is still disconnected.
I ...
0
votes
1
answer
65
views
LLDB is invoking Xcode to display source code all of a sudden. How to switch back?
I'm debugging a C project on Mac using LLDB, and the relevant source codes no longer displays inside LLDB commandline, but instead in Xcode.
How do I disable this?
(lldb) version
lldb-1700.0.9.502
...
1
vote
1
answer
56
views
Python doctests for a colored text output
Is it possible to write a docstring test for a function that prints out the colored text into the command line? I want to test only the content ignoring the color or to add somehow the information on ...
3
votes
2
answers
99
views
Parsing a list of parameters built programmatically does not work with getopt
I am running a C program like this:
int main(int argc, char **argv)
{
int opt;
// Normal command line parsing
while ((opt = getopt(argc, argv, "s")) != -1)
printf("...
0
votes
0
answers
93
views
Open DB browser For SQLCipher by command line
We use SQLite and, more recently, the encrypted version with SQLCipher.
It works well with our software, but I'm having a small problem using DB Browser for SQLCipher. This software works well, but it ...
-1
votes
1
answer
96
views
-r (--reuse-window) not working in code command at all
I used a new machine with VSCode for the 1st time. I moved my dev setup there, including EDITOR env var with code -wr. But I noticed e.g. git wasn't opening the file in the same window, unlike on old ...
0
votes
3
answers
127
views
How can I undo a commit on Git for a file that no longer exists?
I tried to push my commit via command line
git add -A
git commit -m "Message"
git push origin master
but I had included a file that was too big and the commit failed. I deleted the file and ...
2
votes
1
answer
67
views
bash: -- being caught by first option, rather than by -- case
I have a script that parses command line arguments after using getopt. The issue is that the -- before my positional arguments is caught by my --usage) case, thus showing usage text erroneously. Is ...
0
votes
0
answers
37
views
I can run an RPA exe by going to the server directory and double clicking it, but get an error using a command line [duplicate]
I've built an RPA that runs fine as a .py. I turned it into an .exe and it ran fine that way as well. Next I moved it to the production server that it will run from and using File Explorer, double ...
0
votes
1
answer
273
views
Npm install playwright with javascript as language commandline with quite [closed]
I am trying to install Playwright using the command line without a prompt. It should pick up JavaScript and leave the other defaults.
I tried the following option:-
npm init playwright@latest -- --...
0
votes
1
answer
69
views
How do I copy a specific file to have it replace all files of only a specific file type in all subfolders of a directory that match a wildcard in PATH [closed]
So, I'm currently working on a mod for a game, and I might end up having to do this for other mods in the future, so I'd like to know if there is a way to do it with the FOR/DO command in Windows' ...
0
votes
0
answers
76
views
How to execute git commands on console in IntelliJ using bundled Git rather than Git installed on host OS?
When I used the Terminal pane within IntelliJ IDEA 2025.1 RC on macOS 15.4 Sequoia, and execute git --version I see:
git version 2.39.5 (Apple Git-154)
And which git shows:
/usr/bin/git
That leads ...
0
votes
0
answers
43
views
Why isnt CMake recognized by the command prompt when its in a path in my environment variables [duplicate]
I am trying to get CMake working with powershell but even though CMake is in my program files and added to both system paths and user paths in enviornment variables, powershell wont recognize CMake.
...
-4
votes
1
answer
45
views
Is it possible to avoid typing plaintext password as an argument to a script that requires that? [closed]
I often execute a Perl script, which I cannot change, and it requires password to be passed as a command line argument in plaintext. For example:
$> perl myscript.pl -host localhost -user someone -...
0
votes
1
answer
670
views
How can I open VS Code’s side-by-side diff view (staged vs. working copy) from a single terminal command? [duplicate]
Repository State
I have a git repository located in ~/Desktop/ML/Books. In this repo, I've made a series of edits to a file (main.rs) as follows:
Initially, I modified main.rs, staged it, and ...
2
votes
4
answers
115
views
xmlstarlet: Match / find by comments?
I have an XML file that looks like this:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rrd SYSTEM "https://oss.oetiker.ch/rrdtool/rrdtool.dtd">
<!-- ...
0
votes
0
answers
60
views
How to build dylibs for iOS/iPadOS and include them in apps?
Preface
I am partially sighted and find IDEs incredibly hard to use. If you wanted to hire me for a job that required using one, I'd be looking for at least ten times as much money, and warning you ...
0
votes
0
answers
16
views
Can ncurses overlay a window on top of the current terminal text and restore the terminal text on exit? [duplicate]
I'd like to have a popup window appear on top of the current terminal text then have the terminal text restored after the program exits. Can ncurses do that? Can it be faked by having ncurses copy ...
1
vote
2
answers
65
views
How can I generate an OK/Cancel box with the dialog command?
I want to generate the graphic below, from the (Linux) command-line.
I can get pretty close to that by invoking:
dialog --title "fsfe.org" --msgbox "This computer\nis not old,\nit is ...
0
votes
1
answer
148
views
How to detect if a shell script has been launched in secret (aka. with a space before)?
I want to know if a script has been launched "secretly" or "anonymously" or "without leaving trace", aka. with a space before. In such event, the script is not added to ...
0
votes
2
answers
99
views
My code works when I run it by simply hitting the run button in Pycharm but not on terminal?
#!/usr/bin/env python3
# interact with command line, open a webpage, grab what you have in your clipboard
import sys
import webbrowser
import pyperclip
# function allowing us to open google maps ...
2
votes
0
answers
129
views
How to run Visual Studio's Code Analysis on the command line exactly like in the IDE?
I have a VS solution with multiple projects. The code is written in C. I am using Visual Studio 17.12.4 Enterprise. When I run the Code Analysis within VS, the analysis is successful on all ...
0
votes
1
answer
572
views
How do I eliminate or ignore the %command% from a Steam game launch option?
I'd like to launch an unrelated program from Steam, so that Steam shows me as playing that game even though I'm not. Specifically I'd like to open a browser and have Steam show me playing a game while ...
0
votes
1
answer
352
views
Implementing --interactive with System.CommandLine
I have a System.CommandLine .NET 9 command line application. It's mostly used for scheduled tasks and the like, but sometimes users need to run it manually.
When run manually, while the help is good, ...
0
votes
0
answers
72
views
Create Android "Hello World" app on linux using command line sdk
I am trying to write a minimal script to set up android SDK environment and build a minimal app.
This is what I've got, but it's failing with a gradle problem which I am unable to solve
FAILURE: ...
1
vote
2
answers
284
views
Python command line tool with subcommands in typer - How do I include a Typer instance with only one command?
When writing a command line tool in Python using Typer one can create a CLI with commands and even subcommands. If you define a CLI with only one command the CLI will be optimized such that you do not ...
0
votes
0
answers
56
views
Why unrecognized Argparse arg1 in bare "my_script .py arg1" vs "python my_script.py arg1"
I can run a script on the command line with an argument either as the bare "script.py arg1" or I can run it as "python script.py arg1". Both work until I use argparse for command ...
0
votes
1
answer
69
views
SCP and ssh - how to combine to not input ssh-key password twice?
Can the bellow windows batch script be optimized, so i don't need to input the ssh-key password twice ?
The password is required for both:
scp "D:\inetpub\HomepageExample.rar" [email protected]....
0
votes
1
answer
85
views
How can I programmatically reload all projects in a Visual Studio solution using the command line for devenv?
I am encountering an issue when running the devenv command line for my solution file. Not all projects are loading properly. However, when I use the Visual Studio 2019 UI, right-click the solution, ...
1
vote
1
answer
89
views
Powershell and CMD combining command-line filepath arguments to Python
I was making user-entered variable configurable via command line parameters & ran into this weird behaviour:
PS D:> python -c "import sys; print(sys.argv)" -imgs ".\Test V4\Rilsa\...
0
votes
0
answers
59
views
Intel software improvement program dialog box -- consent form starts each time application is profiled
I start profiling my application from the command line with the following shell script:
source /opt/intel/oneapi/setvars.sh
vtune -collect hotspots --app-working-dir=$PWD -- $PWD/MyExecutable
This ...
1
vote
0
answers
383
views
How do I correctly use the 1Password CLI op command to open the Bruno API client with an .env file that contains my secrets?
I have an environment file .env for my bruno collection. There I defined one envirnoment variable called API_KEY. The value of this variable is a reference to a 1Password secret e.g. op://Private/...
0
votes
2
answers
124
views
Pass a command line argument to a running instance of Winform Application
I need to ensure only 1 instance of the application is running. So I have a Mutex lock code in the Main() method which works fine.
now I have a requirement to pass a command line argument to the ...
0
votes
0
answers
14
views
I would like to run a .exe file from a robotframework script [duplicate]
I would like to run a .exe file via robotframework script.
The below code starts the command prompt but how do I pass the command to run the .exe file please.
I tried adding - & followed by the ...