23,351 questions
0
votes
0
answers
46
views
Display an help for my scripts from command-line [duplicate]
I'd like to display an help for my scripts just like with other linux commands:
./ScriptWithHelp.sh --help
where ScriptWithHelp.sh contains:
if echo $1 | grep -q "--help"
then
echo "...
-1
votes
1
answer
41
views
How to do a multiline merge-request-description from the commandline
I'm working on a script to create an MR (merge-request) from the command-line.
I already came across this issue, which led me to these docs.
I'm running this in python via subprocess, scince this is ...
2
votes
2
answers
123
views
Creating clickable link to text file in Powershell
I'd like to create a hyperlink to a text file in a Powershell script that'll be run in Windows terminal. I've made it work by hardcoding the link, ex. file://c:/textfile.txt but I'd like to compile ...
Advice
0
votes
3
replies
83
views
Can't specify Powershell as default terminal for Visual Studio Community 2026
I can't specify Powershell as default terminal for Visual Studio Community 2026. I mistookly changed default terminal from Powershell to Cmd, but I can' change it back. My terminal choose selection ...
3
votes
0
answers
67
views
How to query custom annotation symbols using KSP (Kotlin Symbol Processing) — including command-line usage?
I am building a custom KSP processor to query symbols annotated with my own annotation. The goal is to:
Find all classes/functions annotated with my custom annotation
Process them at compile time
...
3
votes
0
answers
361
views
I got exception after adding automatic configuration generation in C# project
I want to make certification when building application instead of manually creating it. I wrote a script to generate certificate and then call it from my .csproj file. But the problem is: when I run ...
3
votes
2
answers
116
views
Optarg always giving ' ' value
I am trying to do a project which calculates the strength of a given password but I have an extra feature like -f which takes a .txt file and scans if password is found in it but when I type such as ./...
0
votes
1
answer
66
views
Can I get ccmake (or cmake) to produce a command-line for configuring with my current choices?
I have used ccmake to configure a project with a combination of options - strings, toggles, etc.
Now, I want to save my choices so that, in the future or on another machine, I could just issue a ...
-1
votes
0
answers
32
views
Docker run throws error executable file not found in $PATH when arguments are passed [duplicate]
I Have a python program which I containerized. The script accepts command line arguments. Arguments are correctly processed when running the script directly from the IDE. But if I run the container ...
Advice
1
vote
3
replies
60
views
Did Windows 11 Break the DiskPart Utility?
I have several thumb drives that I've been playing with putting Linux distros on to experiment with my new Raspberri Pi. I've had problems using the GUI disk formatter and diskpart in the command line ...
0
votes
0
answers
71
views
Snowflake CLI Invalid connection configuration. 250001: 250001: Could not connect to Snowflake backend after 2 attempt(s)
I am trying to run snow git execute @advanced_data_engineering_snowflake/branches/main/forums-analyes/pipeline/data/load_forums_data.sql -D "env='STAGING'" --database=COURSE_REPO --schema=...
-2
votes
1
answer
128
views
How to tell "cdb" to drop all unneeded information (mostly about "Debugger Extensions Gallery" and just give the required information?
I'm trying to write a Python script, in order to perform dump analysis (as heap_stat.py was doing before).
In order to make this work, I'm thinking of using "cdb.exe", the Windbg commandline....
0
votes
0
answers
90
views
How to create an atomic unabortable step in jenkins
I have a Jenkins pipeline with a critical stage that runs my custom .NET CLI performing important tasks. I want this stage to be fully atomic, meaning that if someone tries to abort the build while ...
Best practices
0
votes
1
replies
105
views
Using user-defined constant in ffmpeg filtergraph?
In a Windows batch file, is it possible to define a constant when using a filter or when chaining filters? E.g. to pad a video with 15 pixels, I can use:
-filter_complex "[0:v:0] pad= iw+30 : ih+...
2
votes
2
answers
175
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
70
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
131
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
187
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
276
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");
...
-1
votes
1
answer
118
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
81
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
98
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
139
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
54
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
45
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:
...
4
votes
1
answer
176
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
131
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
412
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
46
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
105
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
85
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
71
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
65
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
107
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
122
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
151
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
134
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
74
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 ...
-1
votes
0
answers
39
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
395
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
79
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
103
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 ...
-4
votes
1
answer
52
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
1k
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
129
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">
<!-- ...
1
vote
2
answers
80
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
155
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
106
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
189
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
1k
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 ...