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.
Slacko64 v.7.0 Script in StarUp folder doesn't run at startup (solved)
Moderator: Forum moderators
-
- Posts: 17
- Joined: Fri Jun 04, 2021 10:39 am
Slacko64 v.7.0 Script in StarUp folder doesn't run at startup (solved)
Reason: added solved to show fix was found
- bigpup
- Moderator
- Posts: 6985
- Joined: Tue Jul 14, 2020 11:19 pm
- Location: Earth, South Eastern U.S.
- Has thanked: 906 times
- Been thanked: 1522 times
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
What is the script suppose to do?
What did you name it?
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected
-
- Posts: 17
- Joined: Fri Jun 04, 2021 10:39 am
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
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
-
- Posts: 17
- Joined: Fri Jun 04, 2021 10:39 am
-
- Posts: 17
- Joined: Fri Jun 04, 2021 10:39 am
-
- Posts: 17
- Joined: Fri Jun 04, 2021 10:39 am
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
I have changed the name of the script from notes.sh to notes but it still does not work at startup.
Thanks bigpup
-
- Posts: 17
- Joined: Fri Jun 04, 2021 10:39 am
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
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 !!!
-
- Posts: 17
- Joined: Fri Jun 04, 2021 10:39 am
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
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
- bigpup
- Moderator
- Posts: 6985
- Joined: Tue Jul 14, 2020 11:19 pm
- Location: Earth, South Eastern U.S.
- Has thanked: 906 times
- Been thanked: 1522 times
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
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.
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected
-
- Posts: 1565
- Joined: Sun Jul 12, 2020 2:38 am
- Location: S.E. Australia
- Has thanked: 241 times
- Been thanked: 701 times
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
Could add Leafpad line to immediately before ### END ### in /usr/sbin/delayedrun - runs after X started. Won't need a 'sleep' there.
-
- Posts: 17
- Joined: Fri Jun 04, 2021 10:39 am
Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup
Solved !!! Thanks bigpup and ozsouth. Script woks with sleep 5 also with delayedrun.
Thanks and greetings,
Ramón Riera
Puppy Linux lives !!!