Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
425 B
4
Indexable
Never
When I run this in my sh file 
engine_public_version="$(/rdsdbbin/oscar/bin/mysql -u rdsbmsperf -p auroraperf -e "SELECT aurora_version();" -prdsbmsperf | grep -P '[\d.]+')"

I get the output 
but when I do this in my python file
cmds.append(
            "engine_public_version=$(mysql -u rdsbmsperf -p auroraperf -e \"SELECT aurora_version();\" -prdsbmsperf | grep -oP '[\\d.]+' | tr -d '\\n')"
        )

I get empty output
Leave a Comment