Jump to content

Recommended Posts

Posted

You can put the "#!/usr/bin/python3.6" shebang at the top of any Python file, set it's permissions to 755 and execute it via the browser/cron job.

  • Like 1
Posted
  On 7/1/2020 at 3:07 PM, sohamb03 said:

You can put the "#!/usr/bin/python3.6" shebang at the top of any Python file, set it's permissions to 755 and execute it via the browser/cron job.

 

Sayan,

Thank you for your help and quick response.  Would have been lost without them.  Just joined HelioHost 2 days ago so learning curve is still kind of vertical and never learned much Unix as well.

-

Thanks to your guidance, entered the ‘shebang’ at the top of the file (without quotes – hope this is good) and reset the permissions.  Could not find how to execute the job, however – could you help with a few more words?  Also did not see how to execute the job.

-

Thank you again for your guidance.

Best, Bruce

 

 

Posted
  On 7/1/2020 at 3:07 PM, sohamb03 said:

You can put the "#!/usr/bin/python3.6" shebang at the top of any Python file, set it's permissions to 755 and execute it via the browser/cron job.

Please make sure you check the user's server before you recommend a shebang. Python3.6 will only work on Ricky. Johnny and Tommy have Python3.7. This user is on Johnny.

 

  On 7/1/2020 at 2:33 PM, bmeyer said:

Have searched much for how to access Python within HelioHost but no luck.

Check out this post https://www.helionet.org/index/topic/29540-solved-total-beginner-need-help-running-a-python-script/?p=133810

 

@Flazepe/Sohamb03, if you're not too busy could you adapt that forum post into a wiki article and submit a pull request?

  • Like 1
Posted
  On 7/1/2020 at 6:08 PM, Krydos said:

 

  On 7/1/2020 at 3:07 PM, sohamb03 said:

You can put the "#!/usr/bin/python3.6" shebang at the top of any Python file, set it's permissions to 755 and execute it via the browser/cron job.

Please make sure you check the user's server before you recommend a shebang. Python3.6 will only work on Ricky. Johnny and Tommy have Python3.7. This user is on Johnny.

 

  On 7/1/2020 at 2:33 PM, bmeyer said:

Have searched much for how to access Python within HelioHost but no luck.

Check out this post https://www.helionet.org/index/topic/29540-solved-total-beginner-need-help-running-a-python-script/?p=133810

 

@Flazepe/Sohamb03, if you're not too busy could you adapt that forum post into a wiki article and submit a pull request?

 

Krydos,

Thank you for your help!

-

The instructions in your link look very detailed -- just the thing needed for a new user to learn his way around this part of HelioHost.  This is my first public server experience so the help will be especially valuable.

Best, Bruce Meyer

Early Education Research Foundation.

Posted

Went through the steps in Krydos' link.

-

The following steps seemed useful:

Step 7 – Right click the test.py file and click Change Permissions.

Step 11 – Highlight test.py and click Edit

Step 12 – Leave UTF-8 as the encoding.  [Or maybe just omit this step.]

 

Could not go beyond Step 14 since the links in the instructions no longer worked.

 

Would be glad if anyone has the link for the the final step.

 

Thank you all again for your help in this -- am much closer than would ever have been on my own.

 

 

Posted

Step 15 is just to open the page in your browser. Your domain isn't currently hosted by us. If you purchased earlyedresearch.org then you need to change your nameservers to ns1.heliohost.org and ns2.heliohost.org to host that domain with us. If this isn't your domain I recommend changing your main domain to something free like earlyedresearch.heliohost.org with this link https://www.heliohost.org/classic/support/scripts/domain

Posted
  On 7/1/2020 at 10:37 PM, Krydos said:

Step 15 is just to open the page in your browser. Your domain isn't currently hosted by us. If you purchased earlyedresearch.org then you need to change your nameservers to ns1.heliohost.org and ns2.heliohost.org to host that domain with us. If this isn't your domain I recommend changing your main domain to something free like earlyedresearch.heliohost.org with this link https://www.heliohost.org/classic/support/scripts/domain

Ahh, now I understand.  Thank you for explaining.  We own the EarlyEdResearch.org website but that is for our company and not yet built.  We're here to build a special project web site.  Now I understand what the domain name question was when we joined.  We have yet to decide on the name for the project and would be glad to use a temporary name as you suggest.  I'll revise our settings in the morning (assuming that is the right way to correct this) and now I know where to find the pages we generate as well.  Thank you once more for your help -- and if any of this does not yet seem correct, please let me know.  Best regards, Bruce Meyer, Early Education Research Foundation.

Posted
  On 7/1/2020 at 11:57 PM, flazepe said:

Created a quick one, might remake it later. https://github.com/HelioNetworks/heliohost-wiki/pull/5

Looks good https://wiki.helionet.org/tutorials/python It might be useful for non-Johnny users to have the Tommy and Ricky module links too.

 

Ricky:

https://krydos1.heliohost.org/cgi-bin/modules27.py

https://krydos1.heliohost.org/cgi-bin/modules36.py

 

Tommy:

https://krydos.heliohost.org/cgi-bin/modules27.py

https://krydos.heliohost.org/cgi-bin/modules37.py

Posted (edited)

The Johnny python2.6 link is broken. It should be python2.7.

 

EDIT:

 

I edited the original forum post that Flazepe got the 2.6 from.

Edited by Krydos

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...