In unix shell script I can do the following to get the status and
values returned by a unix command
OUTPUT=`some unix command`
STATUS=$?
if [ $STATUS -ne 0 ]
then
exit 1
else
set $OUTPUT
VAL1=$1
VAL2=$2
VAL3=$3
fi
How can I achieve the same in python?
I know how to run it via the
loial In unix shell script I can do the following to get the status and
loial values returned by a unix command
loial OUTPUT=`some unix command`
loial STATUS=$?
loial if [ $STATUS -ne 0 ]
loial then
loial exit 1
loial else
loial set $OUTPUT
loial
loial wrote:
In unix shell script I can do the following to get the status and
values returned by a unix command
OUTPUT=`some unix command`
STATUS=$?
if [ $STATUS -ne 0 ]
then
exit 1
else
set $OUTPUT
VAL1=$1
VAL2=$2
VAL3=$3
fi
How can I achieve the same in python?
I