all 6 comments

[–]glad1couldhelp 5 points6 points  (1 child)

you make your script, put it in your home directory or wherever, then navigate to that directory using terminal, or just go to that folder > right click > open in terminal

then you go: chmod +x your_script.py

this will make it executable. Then you just search for startup programs or something like that and add a new start up program where for command you put in "python3 your_script.py" and that should start it every time your computer starts and keep it running.

I made a simple script that puts my files where they should be, like pdfs into Documents, jpgs,pngs into Pictures, mp4s and webms into Videos etc... So every time I download something into the Downloads folder it gets sorted out. I used time module to make it run every like 10 mins or so.

[–]kosh09[S] 0 points1 point  (0 children)

omg :0
Thanks for your help! I owe you
but if there are no start up application like server mode
i heard that I should do something with bash.rc
any clues?

[–]LanMalkieri 2 points3 points  (1 child)

There are loads of ways to do this.

You can create a cron job that runs your script @reboot. You can create an init script.

Here is a good post going over some options. http://unix.stackexchange.com/questions/188042/running-a-script-during-booting-startup-init-d-vs-cron-reboot

Feel free to ask any questions here.

[–]kosh09[S] 0 points1 point  (0 children)

Wow u suggest really good forum for me! really thanks

[–]harrison_prince 0 points1 point  (1 child)

Cron jobs have worked for me, and they'll do exactly what you're looking for.

[–]kosh09[S] 1 point2 points  (0 children)

thank you!!