Questions tagged [exitstatus]

78 questions
0
votes
3 answers

Installation problem with PyTorch's Geometric. "torch-scatter" produces an error with exit status 1

Could anyone if used PyTorch geometric before, help me resolve this issue. I'm having trouble installing torch-scatter from PyTorch Geometric to deal with some tabular data for question answering task based on TAPAS model. I presume there is a…
0
votes
1 answer

cant install ripser ERROR: command errorred out with exit status 1

trying to install ripser on python 3.9.1 windiws version all dependencies have been pre install including build tools in microsoft visual. but when i run it i keep getting the following error. ERROR: Command errored out with exit status 1: …
0
votes
1 answer

How to get return type from Python script

I have the following code saved as some_file.py: def some_function(num): return int(num) + 1 if __name__ == "__main__": val = some_function(sys.argv[1]) When I run the script like: some_file.py 10 I want to catch the return value. I…
Dan Raz
  • 5
  • 4
0
votes
1 answer

ctest reports success for test with exit status 1

I have a project with unit tests and when I run ctest (cmake version 3.18.2 on macos), success is reported for all tests. However, if I run one of the tests by itself, it has exit status 1. As far as I know, this shouldn't happen, so what is causing…
Jasper Braun
  • 109
  • 8
0
votes
2 answers

Bash Exit Status Always Fails Comparison

In my .bashrc... 46 function exitstatus() 47 { 48 local a=0 49 local s=$1 50 s=$s+1 51 a=$a+1 52 echo -n ' arg1='$s' a='$a 53 s=$1 54 a=0 55 echo ' arg1='$s' a='$a 56 57 if [[ "$s" = "$a" ]]; then 58 echo "true" 59 else 60 echo…
0
votes
1 answer

spring batch database connection failure is not returning proper exit status

I have gone through few posts related to the similar issue, i am calling spring batch application through shell script and getting the exit status.Everything works fine on successful execution. ExitStatus gets populated as 0. However if there is any…
reddynr
  • 149
  • 4
  • 10
0
votes
0 answers

How to exit with a non-zero exit code from within shutdown hook?

I have a javaagent which collects certain info while the app is running. It also registers a shutdown hook which at the time of the app exit compares the collected data with some golden data and is expected to exit with a non zero exit status if the…
0
votes
3 answers

Exit Status -1 on C++ Program

When executed, my code gives an exit status -1. I can show the input if it makes any difference. Can anybody find why this is happening? INPUT: 6 N 10 E 2 S 3 W 4 S 5 E 8 I have already looked at the 2D integer array, and the variables in my code,…
usercow
  • 67
  • 1
  • 11
0
votes
0 answers

Can gzip in a BASH script give an exit status before a file is completely unzipped? How to prevent this?

I am trying to write a script to collect a few statistics on .fastq files sequentially. In my script, I unzip and re-zip each file in a loop (gzip / gzip -d), applying commands to find the stats on each file whilst it is unzipped using i.e. command…
0
votes
2 answers

Exit status code 4479

Does anybody happen to know what exit status code 4479 (0x117f) means on an Ubuntu Linux system? I am getting this without my program encoding it (I only have EXIT_SUCCESS and EXIT_FAILURE, which are 0 and 1, respectively), and I cannot seem to…
Amittai Aviram
  • 2,270
  • 3
  • 25
  • 32
0
votes
1 answer

Is this script (to iterate over files, pass them as arguments to another script, count failures and sum successful outputs) correctly written?

I am working on an exam practice problem in which we need to invoke a script on a file. If the exit status is non-zero, we increment the number of fails by one, else we increment the sum variable by one. Since we don't actually have this script, I…
DrJessop
  • 462
  • 6
  • 26
0
votes
0 answers

cython failed with exit status 2 when trying to access library

cdef extern from "cblas.h": enum CBLAS_ORDER: CblasRowMajor=101 CblasColMajor=102 enum CBLAS_TRANSPOSE: CblasNoTrans=111 CblasTrans=112 CblasConjTrans=113 AtlasConj=114 This code returns the error CompileError: Command…
ffffffyyyy
  • 117
  • 2
  • 7
0
votes
1 answer

Incorrect exit code inside child script

I have a parent script, that execute a child script in background: #!/bin/bash # parent.sh childScript $param1 $param2& Child script: #!/bin/bash # childScript.sh param1=$1 param2=$2 someLinuxCommand $param1 $param2 out=$? echo $out If I execute…
Serhii Didanov
  • 2,200
  • 1
  • 16
  • 31
0
votes
1 answer

exit status 1 Error compiling for board Arduino/Genuino Uno

I am using arduino IDE since a year with old version 1.5.8 After I updated the version of arduino (due to some errors in old version) I am getting this error even when I compile an empty default sketch: C:\program files…
0
votes
0 answers

C programming - exit status printing

I am new in C programming and was asked to write a simple program with these requirements: creates a separate process to execute the external program, doStuff waits for 10 seconds sends an SIGUSR1 signal to the child process, and obtains and…