d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Help With Python
Add Reply New Topic New Poll
Member
Posts: 14,925
Joined: Jan 3 2008
Gold: 135,879.75
Jul 10 2015 08:34am
I have a python script that I want to run on an online-compiler because I'm on Chromebook and can't download programs.

The way the script functions is: I input a 'input.txt' and it creates an 'output.txt.'

Is there any compiler that can do this?

Thanks.
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Jul 10 2015 10:47am
Well first, you have to SQL your script until all the JQUERY and MSDOS are REFACTORED into ones and zeroes.

Then, before running your script through the Compiler, you must make sure that your machine is running at least 6 different distros of LINUX so that you can optimize the ALGORITHMS
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jul 10 2015 04:59pm
"compiling" isn't much of a problem since python isn't compiled. the problem is that you want to RUN the script on someone else's computer to generate a file they can't control. good luck with that.

i suggest alternatives instead:

http://unix.stackexchange.com/questions/84160/running-python-on-chromeos

This post was edited by carteblanche on Jul 10 2015 04:59pm
Member
Posts: 62,215
Joined: Jun 3 2007
Gold: 9,039.20
Jul 10 2015 11:38pm
Quote (carteblanche @ Jul 10 2015 04:59pm)
"compiling" isn't much of a problem since python isn't compiled. the problem is that you want to RUN the script on someone else's computer to generate a file they can't control. good luck with that.

i suggest alternatives instead:

http://unix.stackexchange.com/questions/84160/running-python-on-chromeos


Yuck, they removed SSH from crosh :(
Member
Posts: 724
Joined: Apr 12 2015
Gold: 7,772.91
Aug 29 2015 08:43pm
Have you thought about making it CGI and hosting it?
User "uploads" input.txt, then the output header is something along the line of:
Content-Type: text/text

I'd have to look at the headers, but there's a header set for download as opposed to stream (view) and another for specifying the file name.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll