Tryed launching script via crontab but it wasn’t successful
@reboot (sleep 90; bash /home/admin/mouse.sh)
Tryed launching script via crontab but it wasn’t successful
@reboot (sleep 90; bash /home/admin/mouse.sh)
What I’ve found to be the easiest way to execute a script at startup is to create a startupScript.desktop
file like the following and put it inside the ~/.config/autostart
directory:
[Desktop Entry] Name=startupScript Terminal=false Type=Application Exec=bash path_to_your_bash_script
I think it should be
@reboot /home/admin/mouse.sh
With the sleep command in your script. Like so,
#!/bin/sh
#10 second delay
sleep 10s
#start htop in xterm
xterm -fa 'Monospace' -fs 10 -e htop
With your time delay and command of course.