Making a script run in the background
NickName:WholesomeGhost Ask DateTime:2016-11-20T23:36:01

Making a script run in the background

I made a python script and it should run all the time on my computer but I want it to be hidden. How can I hide the console so that the user doesn't have to see it in his taskbar the entire time?

Copyright Notice:Content Author:「WholesomeGhost」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/40705884/making-a-script-run-in-the-background

Answers
Joshua Nixon 2016-11-20T16:00:05

I cannot comment as < 50 rep :/\n\nSave the python file as .pyw (This removes the console)\n\nFile will run without the console 'hiding' it\n\nClose it by using Taskkill or task manager\n\nEDIT\nIf you want the program to launch on start up, put a shortcut or the file in the startup file\n\nTo get there go to run (Window + R)\n and type shell:startup\n\nCopy your file into the directory",


More about “Making a script run in the background” related questions

Run bash script in background by default

I know I can run my bash script in the background by using bash script.sh &amp; disown or alternatively, by using nohup. However, I want to run my script in the background by default, so when I run...

Show Detail

Making a script run in the background

I made a python script and it should run all the time on my computer but I want it to be hidden. How can I hide the console so that the user doesn't have to see it in his taskbar the entire time?

Show Detail

Making an Android web app run in the background

Is it possible to make an Android web app run in the background? I've heard that Opera and Firefox allow you to do this, but I can't find a lot of material about it. Specifically, I'm making a web ...

Show Detail

Linux - run dialog script in background

I try to run in background a dialog bash script. The script is called dialog_localscript and I'm try to launch it with the command: ./dialog_localscript.sh &amp; If I run it not in background it

Show Detail

Run a php script in the background

I am trying to run a php script in the background on windows. Basically my goal is to run a exe file in the background and receive a signal when its done. I'm open to any suggestions. Thanks.

Show Detail

Run script in background?

Simple question: Is there a way to run a script in the background with out terminal running? More detail and background: I had an app that read an apps .log file and puled information from it, then

Show Detail

Run python script in background

I have a python script that's run in the systray (WINDOWS), but when I use the pyinstaller2.0, it opens in systray, but also opens my console. This script doesn't involve graphics, but I need it t...

Show Detail

Run PHP Script in Background

I have two PHP scripts—we will call them script A and script B. Script A starts running when the user does a certain interaction. Script A needs to run script B in the background—thus return script...

Show Detail

Having issues making a simple script in powershell run windows media player in the background

I am trying to do a simple script to where I only want a portion of my script to run in the background. I want to run the windows media player in the background. I am brand new to powershell and

Show Detail

Run a script in background in flask

I am writing an app using Flask that runs a shell script and displays its output in a web page. This works fine. The thing is when I run the script, it takes a long time and the page is loading dur...

Show Detail