Apr-29-2018, 11:22 AM
Hi
im really new to python so i wrote this script:
#!/usr/local/bin/python
service postgresql start
service postgresql restart
msfdb reinit
i gave it the right permissions:
oot@kali:~# chmod u+x start_msf.py
the problem is that when i try to execute it i get an error which i dont unserstad:
oot@kali:~# python start_msf.py
File "start_msf.py", line 3
service postgresql start
thanks a lot to all !
im really new to python so i wrote this script:
#!/usr/local/bin/python
service postgresql start
service postgresql restart
msfdb reinit
i gave it the right permissions:
oot@kali:~# chmod u+x start_msf.py
the problem is that when i try to execute it i get an error which i dont unserstad:
oot@kali:~# python start_msf.py
File "start_msf.py", line 3
service postgresql start
thanks a lot to all !