Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 11 Dec 2018, 00:14
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Pschedule task at startup
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
Freddie1

Joined: 28 Apr 2018
Posts: 31

PostPosted: Sun 15 Jul 2018, 22:06    Post subject:  Pschedule task at startup  

I am new to pschedule, after looking at it I don't see how to schedule a one time task at boot. Do I choose the "ANY" option from every column?
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 11367
Location: S.C. USA

PostPosted: Mon 16 Jul 2018, 00:41    Post subject:  

What do you want to run one time at boot?
_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
Freddie1

Joined: 28 Apr 2018
Posts: 31

PostPosted: Mon 16 Jul 2018, 08:43    Post subject:  

A terminal application created for the Brother Scanner "brscan skey". It locates the USB connected scanner and makes the connection between the scanner and the PC. Until it is run xsane scanning cannot work.

I also want to have xsane running as part of boot.

I tried using crontab by entering "@ reboot /usr/bin/xsane" but it didn't work

Hope that helps, all I want is that both apps run at startup without any user intervention.
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1139
Location: Smithers, BC, Canada

PostPosted: Mon 16 Jul 2018, 09:31    Post subject: Re: Pschedule task at startup  

Freddie1 wrote:
I am new to pschedule, after looking at it I don't see how to schedule a one time task at boot. Do I choose the "ANY" option from every column?

Easiest to place your script (or executable) or a link to your script in /root/Startup. That's what it's for.

Scripts in /root/Startup are executed in alphabetical order so make sure they are named in the order you want them to start.
Back to top
View user's profile Send private message 
Freddie1

Joined: 28 Apr 2018
Posts: 31

PostPosted: Mon 16 Jul 2018, 10:28    Post subject:  

Using root/Autostart sounds good but it looks like I may need to do a lot of reading to use it correctly. I found a readme file and it had the following link: https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html

There a lot in this that is new to me so I guess it's off to school again.

I appreciate your suggestion
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1139
Location: Smithers, BC, Canada

PostPosted: Mon 16 Jul 2018, 11:33    Post subject:  

Freddie1 wrote:
Using root/Autostart sounds good but it looks like I may need to do a lot of reading to use it correctly. I found a readme file and it had the following link: https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html

There a lot in this that is new to me so I guess it's off to school again.

I appreciate your suggestion

/root/Startup is different than /root/.config/autostart and quite a bit easier to use.

Autostart is a directory used in many other distros but requires you to either have or create a .desktop file for your script or executable.

/root/Startup has been in Puppy since the beginning and simply requires a copy of your script or executable, or a link to wherever your script or executable is. I believe /root/Startup is unique to Puppy so you will not find info on it except in Puppy documentation or this forum.

If you are not comfortable making symlinks let me know and I will walk you through it.
Back to top
View user's profile Send private message 
Freddie1

Joined: 28 Apr 2018
Posts: 31

PostPosted: Mon 16 Jul 2018, 11:42    Post subject:  

Thanks, I will give it a shot and report back, again I appreciate the help.
Back to top
View user's profile Send private message 
Freddie1

Joined: 28 Apr 2018
Posts: 31

PostPosted: Mon 16 Jul 2018, 12:35    Post subject:  

@jrb: I created a sym link but apparently not in the manner that is needed to startup to use it. My Symlink: ln -s ~/.packages/builtin_files/xsane ~/Desktop/xsane
The symlink was place in ~/.config/autostart

Upon reboot it was not running. I noticed most of the entries ~/.config/autostart had a .desktop extension. I am guessing I have the symlink living in the wrong place as it didn't acquire this extension when it was created.

What am I doing wrong?
Back to top
View user's profile Send private message 
Freddie1

Joined: 28 Apr 2018
Posts: 31

PostPosted: Mon 16 Jul 2018, 12:48    Post subject:  

Feeling foolish, the symlink wasn't to an executable. I since corrected that error but it still doesn work. My link creation: ln -s /usr/bin/xsane ~/desktop/xsane
I then copied the symlink to the autostart directory ~/Startup/autostart/xsane
Back to top
View user's profile Send private message 
Freddie1

Joined: 28 Apr 2018
Posts: 31

PostPosted: Mon 16 Jul 2018, 13:48    Post subject:  

It worked after the reboot....Thanks again for your suggestions.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0616s ][ Queries: 12 (0.0144s) ][ GZIP on ]