Python Forum
Os.system("shutdown"); command not found
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Os.system("shutdown"); command not found
#1
Hi, I am trying to shutdown my Linux mint computer via a python script, but I get a command not found error.
os.system("shutdown now")
Error:
sh: line 1: shutdown: command not found
Reply


Messages In This Thread
Os.system("shutdown"); command not found - by cosmin1805 - Nov-12-2022, 11:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with graceful shutdown of MP thread with asyncio sawtooth500 3 1,066 Jul-03-2024, 05:29 PM
Last Post: sawtooth500
Lightbulb shutdown host from docker container cosmin1805 0 1,600 Nov-27-2022, 06:34 PM
Last Post: cosmin1805
  Possible to execute a python script before log off/shutdown with input commands? Kaltex 1 3,075 May-18-2021, 06:31 AM
Last Post: Skaperen
  Difference between os.system("clear") and os.system("cls") chmsrohit 7 19,448 Jan-11-2021, 06:30 PM
Last Post: ykumar34
  How can I found how many numbers are there in a Collatz Sequence that I found? cananb 2 3,364 Nov-23-2020, 05:15 PM
Last Post: cananb
Question Difference between Python's os.system and Perl's system command Agile741 13 9,166 Dec-02-2019, 04:41 PM
Last Post: Agile741
  Detecting windows shutdown event riccardoob 4 7,496 Nov-12-2019, 04:51 PM
Last Post: Aurthor_King_of_the_Brittons
  Error executing Jupyter command 'notebook': [Errno 'jupyter-notebook' not found] 2 Newtopython123 10 34,643 Apr-25-2019, 07:30 AM
Last Post: banu0395
  run command on system with multi qoutes evilcode1 16 8,846 Aug-31-2018, 05:19 PM
Last Post: evilcode1
  pip command not found Able98 7 54,896 May-31-2017, 07:30 PM
Last Post: Able98

Forum Jump:

User Panel Messages

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