PDA

View Full Version : Kali on PI 4 run shell on login



2022-08-09, 09:10
Hi

I'm trying to run a shell .sh file automatically after user logs in on Kali running on Pi4. I have tried many different methods including putting file in .profile in home directory and .bashrc. I need the shell file to run after user has logged in not on boot.

Any help much appreciated.

Mark

Fred Sheehan
2022-08-11, 20:05
Set up a cron job;

https://phoenixnap.com/kb/crontab-reboot