Results 1 to 4 of 4

Thread: cPanel with Python

  1. #1
    Join Date
    Jan 2010
    Posts
    126

    cPanel with Python

    Hello,
    I want a host that has python, mysql and cron, or some root access for the worse if there is not all. It is to host a python script so that must consume 8-9 MB memory, coupled to a MySQL DB. I am trying to use cpanel with python, but the configuration is not quit working. Do you have more idea regarding this topic then please let me know. Thank you.

  2. #2
    Join Date
    Apr 2008
    Posts
    242

    Re: cPanel with Python

    You therefore seeking a shared Python / MySQL. Look through the list of recommended hosts who support Python on internet and you will have an brief idea about it. For Cron unless you use an external cron service is dedicated server. If you have a dedicated server you can do what you want!

  3. #3
    Join Date
    Mar 2010
    Posts
    330

    Re: cPanel with Python

    I do have a similar kind of a problem, but the differences are, for the shared, I do not think so. I made contact with a host who told me it would not do the script on their servers. I think I'll watch the side of the VDS. I guess I am going in the correct direction. If I am wrong then please correct me with the same.

  4. #4
    Join Date
    Mar 2010
    Posts
    182

    Re: cPanel with Python

    Hello,
    Check out the following code, I think this might help you
    Code:
    def timer():
    	nw = time.localtime(time.time())
    	return time.asctime(nw)
    	
    if len(sys.argv) !=5:
    	title()
    	print "\nUsage: ./cPanel.py <server> <port> <userlist> <wordlist>\n"
    	sys.exit(1)
    
    try:
      	usrs = open(sys.argv[3], "r").readlines()
    except(IOError): 
      	print "Error: Check your userlist path\n"
      	sys.exit(1)
      
    try:
      	wds = open(sys.argv[4], "r").readlines()
    except(IOError): 
      	print "Error: Check your wordlist path\n"
      	sys.exit(1)

Similar Threads

  1. Want cPanel License help
    By GaganjyotTechie in forum Technology & Internet
    Replies: 3
    Last Post: 09-06-2011, 08:55 PM
  2. cPanel 11.25 Log Processing
    By Galimberti in forum Software Development
    Replies: 4
    Last Post: 17-06-2010, 06:39 AM
  3. Migrating IP in cPanel
    By SoftWore in forum Tips & Tweaks
    Replies: 3
    Last Post: 14-06-2010, 01:05 PM
  4. Cpanel vs Plesk
    By Gomeler in forum Software Development
    Replies: 4
    Last Post: 03-11-2009, 12:59 PM
  5. Download Python 3.0 / Python 3000
    By Amaresh in forum Software Development
    Replies: 6
    Last Post: 24-02-2009, 09:28 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,690,702.22684 seconds with 17 queries