On Wed, Mar 25, 2015 at 1:06 AM, arthur sherman
<arthur.m.sher...@gmail.com> wrote:
> i have a python script which currently runs in a shell cli.
> i'd like to initiate this script from a web page.
> the closest i got was to have the output displayed on the webpage (w/o
> linefeeds),
> but it crashed when requesting input via raw_input().
> i simply did 'exec python-script-name' from the cgi.
> ok, i now understand why it crashed and why the output is displayed
> primitively
> it's  now my understanding that django can help.
> where's the best place to start?
> tnx
> ams

The best solution is to rewrite it so that it can be used non-interactively.

Much, much much less reliable is to use an "expect" like library, eg pexpect.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFHbX1LD3jCZgcFix5G%2Bm3A_9TCgig3Ne9qp-ke-G4o-RLc19g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to