Search code examples
linuxlinux-mint

Is it possible to auto reboot for 5 loops through mint?


I am currently using the following command to run reboot

sudo shutdown -r now

however, I would need to run it for 5 loops before and after executing some other programs. Was wondering if it is possible to do it in MINT environment?


Solution

  • I found a way to create a file at startup for my reboot script. I incorporated it with the answers provided by swalladge and also shubh. Thank you so much!

    #!/bin/bash
    
    #testing making a startup application
    
    echo "
    [Desktop Entry]
    Type=Application
    Exec=notify-send success
    Hidden=false
    NoDisplay=false
    X-GNOME-Autostart-enabled=true
    Name[en_CA]=This is a Test
    Name=This is a Test
    Comment[en_CA]=
    Comment=" > ~/.config/autostart/test.desktop