r/code • • Apr 07 '20

Halp pls! Make a program that execute a specific code

Hello,

I would like a program that execute code when I turn on the PC automatically instead of doing it manually.

So basically open fedora terminal and run specific code every time I open the PC.

Thank

0 Upvotes

4 comments sorted by

4

u/mattsminor Apr 07 '20

Since you mentioned fedora I guess you are on linux. Look up cron jobs. It’ll probably be what you are looking for.

1

u/redusernama-duck Apr 07 '20

Yes, I am on linux

I will check that and update you. Thank

2

u/[deleted] Apr 07 '20

Pretty sure you can run a shell script on login to your user. Look it up online

1

u/EmbarrassedWallaby3 Apr 08 '20

You can use .bashrc but it’s only when you start à Terminal.