Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
100 views

In a Jenkins script, I do : def status = powershell( script: """ # Display current directory Write-Host "Current directory: \$(Get-Location)" # ...
Oodini's user avatar
  • 1,463
1 vote
2 answers
123 views

I'm using a setup.ps1 script to launch a (bunch of) child PowerShell scripts each from a new PowerShell process and tries to capture the script's exit code to determine if it succeeded using a helper ...
Kevin James's user avatar
2 votes
2 answers
161 views

git diff normally will not generate an output, if the two commits it compares are identical, to make it generate explicitly "the two commits are the same", I found the bash script below. ...
athos's user avatar
  • 6,517
1 vote
1 answer
105 views

When using pytest and verifying that sys.exit was called, the ExecutionInfo object attribute "value.code" does not reliably contain the genuine integer exit code. The "value.code" ...
ruck's user avatar
  • 43
1 vote
0 answers
74 views

I’m submitting a SLURM batch script that calls an external shell script (qiime.sh), but SLURM fails with ExitCode 127 (“command not found”) even though the script runs fine manually. I need help ...
RISHII's user avatar
  • 11
2 votes
1 answer
76 views

Hi I'm observing a strange behaviour with python multiprocessing Queue object. My environment: OS: Windows 10 python: 3.13.1 but I observed the same with: OS: Windows 10 python: 3.12.7 and: OS: ...
Alberto B's user avatar
  • 650
0 votes
0 answers
25 views

Selenium command when it was working Selenium command when it stopped working I've attached the selenium command to open google chrome when it was working. Here is a snippet: from selenium import ...
BayouGeek's user avatar
0 votes
1 answer
145 views

so I have this C code that compiles (without warning flags enabled): #include <stdio.h> int main() { printf("output\n"); } I was wondering what the OS would interpret by this? ...
user avatar
2 votes
2 answers
203 views

I am trying to have a powershell script called from a C# program give me the exit code of the powershell script. I have attempted it a few ways with no success. The PSObject from the invoke call ...
BrandonE's user avatar
0 votes
0 answers
26 views

I have written a code (it is very basic code related to ema cross). I just wanted to set low of entry candle as stoploss and double of entry candle span as target. I tried reading guide /library but I ...
Akash's user avatar
  • 1
0 votes
1 answer
68 views

I am making a program where I need to play files many times. When I play a file, it plays, but after 2 seconds the program closes with exit code -1073741819. Code: " from pydub import ...
CSER228's user avatar
0 votes
1 answer
50 views

I exexcute $ ssh remotehost "exit 1" $ echo $? 0 The result is 0 and not 1. I have read here on stackoverflow, that it should be 1. What is going wrong? TIA! Update (Solution): ssh is a ...
t777's user avatar
  • 3,429
2 votes
0 answers
61 views

I have a (buggy) C program that exits with exit code 134 (abort). It behaves like the following: #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <stdint.h> ...
Thomas Mueller's user avatar
2 votes
1 answer
139 views

I'm struggling with why an errexit a.k.a. set -e is not passed into a command substitution subshell (invoked with $(my-command) or backticks), but it is passed into a regular subshell (invoked with (...
dersimn's user avatar
  • 885
2 votes
1 answer
151 views

When a snakemake job errors with a non-zero exit code, snakemake prints: (one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!) Exiting because a job ...
Cornelius Roemer's user avatar
-2 votes
2 answers
139 views

I've been trying to build the practice code, but after the step(to get the cordinate through scanf function) #include <stdio.h> #include <math.h> #define pi 3.1415926535 struct point { ...
신현섭's user avatar
1 vote
1 answer
52 views

$ beep; echo $? Command 'beep' not found, but can be installed with: apt install beep Please ask your administrator. 127 $ cat test.sh #!/usr/bin/env bash echo $? The expected output of my script ...
notacorn's user avatar
  • 4,249
1 vote
0 answers
113 views

If I run help if in bash then it tells me that the exit status is "the status of the last command executed". Let's try it: if false; then echo we never get here fi echo $? The last ...
Mark VY's user avatar
  • 1,731
0 votes
0 answers
61 views

#include <iostream> #include <vector> using namespace std; long long n; long long s; int main(){ cin>>n; vector<long long>a(n); for(int i=1;i<=n;i++){ ...
Oak's user avatar
  • 1
0 votes
1 answer
166 views

Within my team's CI/CD pipeline, we have the following Make recipe: test-some-service: echo "Running some tests...." && \ docker-compose up service-target-test && \ ...
u-ways's user avatar
  • 8,282
3 votes
1 answer
131 views

GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu) Consider this simple while loop: while false; do true; done; echo "${PIPESTATUS[0]}" It prints 1 instead of 0. This is unexpected ...
AneesAhmed777's user avatar
0 votes
0 answers
801 views

When I tried to run this C code in Visual Studio Code: #include <stdio.h> int main() { int num, i = 0, lowest; int array[10]; while(i != 10) { printf("Please ...
TT 123's user avatar
  • 1
2 votes
0 answers
80 views

Is there a specific exit code of the Java VM that returns if the Java process crash? I want restart the Java process if its terminate through an crash. If there is a normal termination for example ...
Horcrux7's user avatar
  • 24.7k
0 votes
0 answers
342 views

I reinstalled JetBrains Clion and an error started appearing Process finished with exit code -1073741819 (0xC0000005) when running this code: #include <iostream> #include <stdio.h> using ...
Clf's user avatar
  • 1
0 votes
0 answers
255 views

I am new to coding and was given an assignment to make a program that manages a banking account. I wrote and run my program on VSCode and it immediately initiates an exit code=1 and showed these ...
lolllife's user avatar
0 votes
0 answers
239 views

When I open the bash terminal in VScode it immediately closes and I get the following error: "The terminal process "/usr/local/bin/bash '-l'" terminated with exit code: 1.". I have ...
Baldur Logi's user avatar
1 vote
1 answer
905 views

I am calling curl with a java Process to send json text to an API. I call this code in a loop and all the updates work, except the first one, which fails with exit code 35. I believe the error code ...
mrcrag's user avatar
  • 362
-1 votes
1 answer
97 views

I am new to Python and PyTest. I wrote a program that calculates the lines of code from another Python file. The source code is the following: import os.path import sys def main(): print(...
YoYo's user avatar
  • 3
0 votes
1 answer
168 views

enter image description here How we can connect these two flowcharts together? in order to complete the main flowchart we want to insert the flowchart which starts by Enter and finishes by Exit. we ...
SalimiNasab's user avatar
6 votes
3 answers
6k views

AFAIK, the exit code numbers may vary depending on the application and the conventions adopted in a project. However, I wonder if there is an exit code standard list for C/C++ projects.
user avatar
1 vote
0 answers
354 views

I installed my repo on a new machine, and now getting this error during wicked_pdf Rendered user_mailer/base.pdf.erb (3102.9ms) [wicked_pdf]: ["/usr/share/rvm/gems/ruby-2.4.1@asdf/gems/...
daveasdf_2's user avatar
0 votes
1 answer
145 views

I am trying to set up an access point via Raspberry Pi 2 and a USB WiFi adapter AWUS036H, made by Alfa Network. I am following a guide. The guide is not clear on step 9 whether or not "iptables-...
thanEay's user avatar
1 vote
1 answer
159 views

Why does adb return zero exit status in case of "failed to connect"? Demo: $ adb connect 123.123.123.123:123 failed to connect to '123.123.123.123:123': Connection refused $ echo $? 0 Is it ...
pmor's user avatar
  • 6,775
1 vote
0 answers
58 views

What could be causing this issue? Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) Here is my script: import googlemaps import webbrowser from ortools.constraint_solver import ...
user31081998's user avatar
0 votes
0 answers
53 views

I'm encountering an issue while trying to run my Python project on Windows 10. The process finishes with exit code -1073740940 (0xC0000374). I've attempted reinstalling dependencies, cloning the ...
Константин's user avatar
1 vote
1 answer
619 views

I am trying to get the exit from the application running in a kubernetes cluster. I can see the pod status as Error but I am interested in getting the exact exit code. Docker File: # getting base ...
Imran Khan's user avatar
1 vote
1 answer
701 views

Got this long error when running a simple Go program. Here's my main.go, which has all the functions in a single file (vscode was giving me errors otherwise, even though all files were using package ...
Ethan Leonard's user avatar
0 votes
1 answer
284 views

I have a shell script that executes whisper on all files in a directory on a network device, and then stores the resulting transcript on the same volume. Sometimes something happens with the network (...
d-b's user avatar
  • 983
0 votes
0 answers
44 views

These two errors are not treated in the same manner. One has told me that env is not a builtin in bash. Why the exit codes are different ? pwd -y bash: pwd: -y: invalid option echo $? 2 env -y env: ...
a k's user avatar
  • 21
2 votes
1 answer
168 views

I'd like to be able to warn and fail if the following command expansion fails: #!/usr/bin/env bash set -Eeuo pipefail echo "$(invalid_cmd)" echo "$?" Instead of failing, I get ...
kporter's user avatar
  • 2,798
-2 votes
2 answers
224 views

I am using a bash script that does the following: makepp ./mainHeu where makepp is used to run a c++ code that returns the executable ./mainHeu. I would like to stop the bash script before ./mainHeu ...
Samuele's user avatar
1 vote
1 answer
691 views

I'm trying to write a program for a raspberry pi 3b in python that plays a random loaded .wav file when an on board button is pressed, but it gets to the point of attempting to play the sound then ...
Vyskraen Skythra's user avatar
1 vote
3 answers
125 views

Consider the following bash code: if [ "$a" = "foo"] then echo "TRUE" fi echo $? we get: bash: [: missing `]' 0 So basically, the test in the if fails due to a typo (...
Seriously's user avatar
  • 1,040
1 vote
1 answer
177 views

I'm teaching myself Jenkins and am trying to direct execution flow of a 'pipeline job via declarative syntax' based on result of Test Stage, which I try to implement via the pytest exit code into a ...
hal9kaye's user avatar
1 vote
1 answer
42 views

I know git diff can report a diff-like exit code, using the --exit-code option. However, I haven't found a way to make this play nicely with an external diff program. That is, I would like the ...
Ben Ylvisaker's user avatar
0 votes
1 answer
643 views

I am running a Python FastAPI app with 4 different APIs. In the first one, I have implemented an error handling which after some trouble is working somehow fine. So I copied it's structure to the ...
Eleandro's user avatar
0 votes
0 answers
78 views

i appreciate it if you would help me with this problem which i am struggling since 2 days. i am using vs code and c. i am trying to do some calculation on floating integers with more than 10 digits ...
pickjimeli's user avatar
3 votes
1 answer
118 views

The example below echoes 1, as expected: test -f /usr/bin echo "$?" #1 Why does the following example echo 0? if [[ -f /usr/bin ]]; then echo "Inside if statement" # This line ...
Francisco J. Güemes Sevilla's user avatar
1 vote
0 answers
504 views

In my Jenkins pipeline, I run a Docker container. To take advantage of the automatic cleanup (stopping the Docker container), I use the Jenkins Docker plugin pipeline's withRun() method to run the ...
StoneThrow's user avatar
  • 6,455
1 vote
0 answers
231 views

in python3 i invoke a parent shell with subprocess.run: output=subprocess.run(['parent.sh', *cmd], stdout=subprocess.PIPE, stderr=subprocess.PIPE) then i check the returncode: print("retcode =&...
friggler's user avatar
  • 177

1
2 3 4 5
22