Jump to content

[Solved] Python


bmeyer

Recommended Posts

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

 

 

Link to comment
Share on other sites

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.

 

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
Link to comment
Share on other sites

 

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.

 

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.

Link to comment
Share on other sites

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.

 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Link to comment
Share on other sites

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...