23,366 questions
0
votes
0
answers
79
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
79
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
140
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
54
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
118
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
163
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
163
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
114
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
68
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
92
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
121
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
47
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
37
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
102
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
116
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 ...