return-code Questions
3
Solved
I can do the following in bash:
output=`command`
retcode=$?
Is there any way to do the same in Perl? Something like this:
$output=`command`
$retcode=???
Marozas asked 19/10, 2011 at 9:29
6
Solved
I'd like to return an exit code from a BASH script that is called within another script, but could also be called directly. It roughly looks like this:
#!/bin/bash
dq2-get $1
if [ $? -ne 0 ]; then...
Jehoshaphat asked 24/5, 2011 at 15:1
5
I am trying to return error code from constructor, since constructor
does not return an error code, I tried to put an exception on the
constructor. Then in the catch block I return my appropriate e...
Slowpoke asked 11/8, 2017 at 21:13
1
I am trying to identify what in a .log file makes a specific task marked as "Successful" vs "Failure" in airflow. I am getting the sense that this is dependent upon the operator (PythonOperator vs ...
Che asked 25/7, 2019 at 14:46
3
Solved
I was wondering whether set -e propagates through subshells (i.e. does a subshell inherit the -e setting of its parent), so I made some experiments. I found some strange results that I can't explai...
Theomorphic asked 25/3, 2014 at 9:31
1
Solved
I use subprocess.check_output a number of times in a script of mine, but I just ran into an issue with an external application. OpenVPN in this case.
When openvpn is called with the --help paramet...
Florey asked 6/3, 2017 at 14:42
4
Solved
I want to know if a given filter succeeds in pulling data from a JSON data structure. For example:
###### For the user steve...
% Name=steve
% jq -j --arg Name "$Name" '.[]|select(.user == $Name)...
Sevenup asked 13/12, 2016 at 15:7
1
Solved
Suppose I'm using a shell like bash or zsh, and also suppose that I have a command which writes to stdout. I want to capture the output of the command into a shell variable, and also to capture the...
Underproof asked 7/9, 2016 at 1:35
1
Solved
I am running on *nix based OS's and have a script that initiates multiple processes concurrently. The main goal for me is to initiate these processes concurrently, and gather the returned exit stat...
Astra asked 11/12, 2015 at 19:11
4
Solved
I just came across a very strange line of code in Python:
....
self.myReturnCode = externalProcessPopen.returncode
....
....
return not self.myReturnCode
....
What exactly return not stands for?...
Cetology asked 30/12, 2013 at 12:43
2
Solved
I can't get ExitCode to work for a VCL forms application. Here is my test application. It was created from the File / New menu in the Delphi 2007 IDE. The only change is that I added the line ExitC...
Pewee asked 28/2, 2013 at 4:47
2
Solved
I have a Perl script that will execute three applications. All of it have different exit code status.
First application exit code status is 1. The application exited normally without any problem. ...
Ingratiate asked 23/3, 2012 at 6:48
1
Solved
I am running a multiprogrammed workload (based on SPEC CPU2006 benchmarks) on a POWER7 system using SUSE SLES 11.
Sometimes, each application in the workload consumes a significant amount of memory...
Jesusa asked 24/8, 2011 at 19:13
1
Solved
Sometimes I run a command in cmd such as:
fc /b file1 file2
and would like to see the return code from fc. Is there a simple way to do this?
Goods asked 26/3, 2010 at 8:7
3
Possible Duplicate:
How do I get the application exit code from a Windows command line?
In Unix/bash, I can simply say:
$ echo $?
to find out the return/exit code of a program, b...
Furthermore asked 10/11, 2008 at 7:30
14
Solved
My question is pretty vague :o) - But here is an example :
When I was writing C code, I was able to log counter's value when something failed :
<...>
for ( int i = 0 ; i < n ; i++ )
i...
Micronesia asked 14/1, 2009 at 21:1
1
© 2022 - 2024 — McMap. All rights reserved.