Questions tagged [exitstatus]

78 questions
1
vote
1 answer

channel.recv_exit_status in paramiko always returns the return code of the first command executed over invoke_shell

I am getting some discrepancy in the return code below. May be I am not using in the proper way. Every-time I print the return code, it prints the same as the first one has returned. Do I need to reset the return code. I mean in the following…
sameer
  • 23
  • 1
  • 2
  • 6
1
vote
0 answers

Why does the terminal throws Gin-debug Error in Go lang application?

I was trying to run my go application but have come across this error , thrown to me as [GIN-debug] [ERROR] listen tcp 127.0.0.1:8080: bind: An attempt was made to access a socket in a way forbidden by its access permissions. I have tried running…
1
vote
1 answer

R: Failed to install 'treeshap' from GitHub

I am using the R programming language. I am trying to install the following R library from github: https://rdrr.io/github/ModelOriented/treeshap/ As per the instructions from this website, I copy and pasted the following code to install this library…
stats_noob
  • 5,401
  • 4
  • 27
  • 83
1
vote
2 answers

How to return a number larger than 8 bits from main()?

So as far as I can tell, the exit code returned from r0 only uses the lowest 8 bits of this register. How wouuld I return a value higher than 8 bits? Here is the ARMv7 code: @ looping.s @ calculates sum of integers from 1 to 100 .text .balign…
Conor Egan
  • 518
  • 1
  • 3
  • 21
1
vote
3 answers

Getting exit status -1 when filling a dynamic array

For some reason, even though I've looked and made myself as sure as I can be I'm doing this right, I keep getting exit status -1 in this code. I'm simply trying to create a dynamic 2d array and to fill each value with a 0: Grid::Grid(int _rows, int…
1
vote
1 answer

exit status for Linux find command always shows success

I intend to use the Linux "find" command from inside a script. I am just bothered if the "find" command finds the executable in any of the paths mentioned, and not about the exact path. I'm testing the below: find /usr/bin /usr/sbin /bin /sbin -name…
dig_123
  • 2,240
  • 6
  • 35
  • 59
1
vote
2 answers

Can I get a -1 exit code using C++ on mac?

I was just wondering if it's possible to get a function in C++ on a Unix system to return -1 and not 255? I have been programming some OpenCV stuff and realised stuff wasnt working as intended. The functions I was using were meant to return -1, but…
Joey
  • 29
  • 5
1
vote
4 answers

how to ignore exit status from shell command in perl script

I have a following code, where i use a command which is used as input for file open. when my command $cmd gives non-zero exit status my script exits. i want it to still continue and do rest of the things in the script $cmd = 'ps -u psharma'; open(…
0
votes
0 answers

installation of package 'Rblpapi' had non-zero exit status

I am trying to install the package Rblpapi using the code install.packages("Rblpapi"). I get the following logs during the installation . * installing *source* package 'Rblpapi' ... ** package 'Rblpapi' successfully unpacked and MD5 sums checked **…
0
votes
0 answers

What does "repl process died unexpectedly: exit status 2 " mean?

I cannot run any code that I write, it just says that "repl process died unexpectedly: exit status 2 " but it does not indicate mistake in any line. I tried to undo the lines I wrote up to the point when the file worked normally and then I wrote…
0
votes
1 answer

Run Time Error (exit status 1) when submitting puzzle in Python

I have python 2.7 installed on my windows computer. I'm trying to email a puzzle answer to Spotify, which is running Python 2.6.6. When I submit my *.py source code, I'm getting the following error: Run Time Error Exited, exit status: 1 I only…
Sam
  • 1
  • 1
0
votes
1 answer

why is the exit status saved in a variable changing (bash shell)?

I have the following executable files: set_status.sh #!/bin/bash exit $1 tst_set_status.sh #!/bin/bash 1. echo arg1 = $1 2. ./set_status.sh $1 3. stat=$? 4. echo $? 5. if [ $stat -eq 0 ]; then 6. final_stat="ok" 7. fi 8. echo…
Gary Aitken
  • 233
  • 2
  • 12
0
votes
2 answers

How to exit a makefile without running other tasks, with a successful exit-code?

I've got a makefile that has a 'contingency step' to bootstrap the environment if the task is run without prior, critical setup: bootstrap: ensure_opam_switch_once build .ONESHELL: $(FRONTEND_OPAM_SWITCH): @echo '' @echo "$(bold)[make…
ELLIOTTCABLE
  • 17,185
  • 12
  • 62
  • 78
0
votes
1 answer

Setting Exit Status in NASM for Windows

I'm currently trying to learn some basic x86 assembly and running into some difficulties running it on Windows. All I'm trying to do is set the exit status. I'm aware of how to do this if I was on Linux: global _start _start: mov eax,1 mov…
Krusty the Clown
  • 517
  • 6
  • 24
0
votes
1 answer

Require exit status !=0 when script inside system command doesn't go well

Code of inter.pl is: use strict; use warnings; my $var1=`cat /gra/def/ment/ckfile.txt`; #ckfile.txt doesn't exist print "Hello World"; exit 0; Code of ext.pl my $rc = system ("perl inter.pl"); print "$rc is rc\n"; Here, when I run "perl ext.pl",…
AskQuestionsP
  • 153
  • 1
  • 9