I am executing a shell script through a pipe in Python as follows:
def(request,self):
args_str1 = "flexiserver/build/svnenv.sh -j 'svntasktag.pl ss_fvnteste'"
args1 = shlex.split(args_str1)
pi = subprocess.Popen(args1, stdout=subprocess.PIPE)
print("***** Before out err *****")
out, err = pi.communicate()
print(" OUT is %s " , out)
context = {'out':out, 'err':err}
req_context = RequestContext(request)
return render_to_response(
'pai_app/create_tag.html', context, context_instance=req_context)
This script is waiting for user input like 'i', 'm', 'c' like arguments. Until the user gives any input it is not printing and not showing in webui.
My question is, is there any possibility to run such Perl or shell scripts in webui itself? Or is there any other resolution for the above problem? Could anyone help me in this as i am struck.