Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with a simple script
#5
killerrex is right, what you are trying to do is bash-scripting. and are trying to stop and start the database server running on you system.
If you want to access a database work with a python database package. There are different packages working best with different kinds of databases, take a look here:
https://www.fullstackpython.com/databases.html
Psycopg should do the trick for you
Reply


Messages In This Thread
help with a simple script - by juanb007 - Apr-29-2018, 11:22 AM
RE: help with a simple script - by juanb007 - Apr-30-2018, 03:00 PM
RE: help with a simple script - by killerrex - Apr-30-2018, 03:42 PM
RE: help with a simple script - by juanb007 - May-01-2018, 11:11 AM
RE: help with a simple script - by ThiefOfTime - May-01-2018, 08:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple Python script, path not defined dubinaone 3 2,793 Nov-06-2021, 07:36 PM
Last Post: snippsat
  Need help creating a simple script Nonameface 12 4,817 Jul-14-2020, 02:10 PM
Last Post: BitPythoner
  Simple text to binary python script gmills13 2 2,889 Feb-04-2020, 08:44 PM
Last Post: snippsat
  Made a simple script for android (really simple) but it is not running anddontyoucomebacknomore 2 2,452 Mar-06-2019, 12:19 AM
Last Post: anddontyoucomebacknomore
  Simple script that seems to misbehave? Nwb 1 2,407 Jun-10-2018, 05:30 AM
Last Post: Nwb
  First time with Python.. need help with simple script shakir_abdul_ahad 7 5,733 May-06-2018, 09:28 AM
Last Post: killerrex
  Simple script writted by a dumb dude, myself mm14ag 2 2,873 Apr-28-2018, 11:48 AM
Last Post: mm14ag
  Need help with a simple AHK script Stabu 0 2,148 Feb-24-2018, 08:27 PM
Last Post: Stabu
  A simple script - looking for feedback glidecode 2 2,805 Feb-20-2018, 11:18 PM
Last Post: glidecode
  Phillips hue simple on script Kimzer 6 4,677 Jan-16-2018, 07:53 AM
Last Post: Kimzer

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020