← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #667668]: Exit Javarunner

 

Question #667668 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/667668

Description changed to:
I have this code inside my python program form Sikuli ide

scriptbash = '''

set dialogText to text returned of (display dialog "Provide your Password:" default answer "")
return dialogText
EOF
dialogText=$(osascript -e "$applescriptCode");

if [ -n "$dialogText" ]; then
foo=""
foo="$dialogText.txt"

Status=$(curl -s -o /dev/null -w '%{http_code}'
https://test.com/users/passcreated/$foo)

if [ $Status -eq 200 ]; then    
echo "Log[]: Welcome user!"
else
echo "Log[]: No valid user!"
exit 0
fi
'''
proc = subprocess.Popen(['/bin/bash'],
shell=True,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE)
stdout_output = proc.communicate(scriptbash)[0]
print stdout_output

#continue to script.....


When I make it runnable jar and run it everything works except the "exit 0".
I can't exit the jar runner no matter what I try..!!

You got any suggestion please..?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.