Slacko64 v.7.0 Script in StarUp folder doesn't run at startup (solved)

Moderator: Forum moderators

Post Reply
ramonriera
Posts: 17
Joined: Fri Jun 04, 2021 10:39 am

Slacko64 v.7.0 Script in StarUp folder doesn't run at startup (solved)

Post 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.

Last edited by bigpup on Fri Mar 22, 2024 3:50 pm, edited 1 time in total.
Reason: added solved to show fix was found
User avatar
bigpup
Moderator
Posts: 6273
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 734 times
Been thanked: 1294 times

Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup

Post by bigpup »

What is the script suppose to do?

What did you name it?

Forum Global Moderator
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 :o

ramonriera
Posts: 17
Joined: Fri Jun 04, 2021 10:39 am

Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup

Post 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

ramonriera
Posts: 17
Joined: Fri Jun 04, 2021 10:39 am

Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup

Post by ramonriera »

Sorry is Leadpaf

Thanks !!!

ramonriera
Posts: 17
Joined: Fri Jun 04, 2021 10:39 am

Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup

Post by ramonriera »

Leafpad

ramonriera
Posts: 17
Joined: Fri Jun 04, 2021 10:39 am

Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup

Post 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

Trapster
Posts: 141
Joined: Sat Aug 01, 2020 7:44 pm
Has thanked: 1 time
Been thanked: 38 times

Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup

Post by Trapster »

I presume you mean leafpad, without the capital "L" ?

ramonriera
Posts: 17
Joined: Fri Jun 04, 2021 10:39 am

Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup

Post 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 !!!

ramonriera
Posts: 17
Joined: Fri Jun 04, 2021 10:39 am

Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup

Post 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

User avatar
bigpup
Moderator
Posts: 6273
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 734 times
Been thanked: 1294 times

Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup

Post 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.

Forum Global Moderator
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 :o

ozsouth
Posts: 1366
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 210 times
Been thanked: 605 times

Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup

Post by ozsouth »

Could add Leafpad line to immediately before ### END ### in /usr/sbin/delayedrun - runs after X started. Won't need a 'sleep' there.

ramonriera
Posts: 17
Joined: Fri Jun 04, 2021 10:39 am

Re: Slacko64 v.7.0 Script in StarUp folder doesn't run at startup

Post by ramonriera »

Solved !!! Thanks bigpup and ozsouth. Script woks with sleep 5 also with delayedrun.

Thanks and greetings,

Ramón Riera
Puppy Linux lives !!!

Post Reply

Return to “Slacko”