Page 1 of 1
Slacko64 v.7.0 Script in StarUp folder doesn't run at startup (solved)
Posted: Wed Mar 20, 2024 1:20 pm
by ramonriera
Hello everyone. First of all, thank you to the developers and collaborators of Puppy Linux. It's a fantastic OS!!! I have a question: I put a simple script in the Startup folder, I give it permissions, and when I start Puppy it doesn't run. If I ran it manually it works. In Startup folder of Puppy Fossa64 it works. any ideas ? Greetings and thanks.
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
Posted: Wed Mar 20, 2024 3:42 pm
by bigpup
What is the script suppose to do?
What did you name it?
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
Posted: Wed Mar 20, 2024 4:07 pm
by ramonriera
The name of the script is notes.sh This script starts Leadpaf and there will be the notes.txt file. The funny thing is that it works when Fossa64 starts but not when Slacko64 starts. Running it manually works.
notes.sh
The purpose of this script is to display the notes.txt file as a reminder when starting Puppy
#!/bin/sh
Leadpaf /mnt/home/notes.txt
exit 0
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
Posted: Wed Mar 20, 2024 4:10 pm
by ramonriera
Sorry is Leadpaf
Thanks !!!
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
Posted: Wed Mar 20, 2024 4:12 pm
by ramonriera
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
Posted: Wed Mar 20, 2024 4:16 pm
by ramonriera
I have changed the name of the script from notes.sh to notes but it still does not work at startup.
Thanks bigpup
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
Posted: Wed Mar 20, 2024 4:59 pm
by Trapster
I presume you mean leafpad, without the capital "L" ?
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
Posted: Wed Mar 20, 2024 5:38 pm
by ramonriera
Yes, sorry. I'm writing from my mobile. Script syntax is OK.
In fossa64 it works manually and when Puppy starts but in Slacko64 it only works manually. Thanks !!!
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
Posted: Thu Mar 21, 2024 8:00 pm
by ramonriera
Incredible !!! , I normally use my Toshiba NB250-10N because it is small and light. But today I connected the Slacko64 v 7.0 USBstick to my Sony Vaio and the script worked. I thought, it's solved!!! But I connected the USBstick to the Toshiba again and it didn't work!!! So the script located in the Startup folder works on the Vaio but not on the Toshiba . Thanks for your time bigpup. I will try to find another way to start the script so that it works with the Toshiba.
Thanks and greetings,
Ramón Riera
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
Posted: Fri Mar 22, 2024 12:59 am
by bigpup
Try this edit to your script.
Add sleep command with a time like 5 or 10
Example:
Code: Select all
#!/bin/sh
sleep 5
Leafpad /mnt/home/notes.txt
exit 0
Maybe the script is running before Slacko64 7.0 is fully booted.
sleep 5 says to wait 5 seconds before proceeding to next command.
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
Posted: Fri Mar 22, 2024 1:15 am
by ozsouth
Could add Leafpad line to immediately before ### END ### in /usr/sbin/delayedrun - runs after X started. Won't need a 'sleep' there.
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
Posted: Fri Mar 22, 2024 9:33 am
by ramonriera
Solved !!! Thanks bigpup and ozsouth. Script woks with sleep 5 also with delayedrun.
Thanks and greetings,
Ramón Riera
Puppy Linux lives !!!