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 Sat 07 Dec 2019, 20:02
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Autostart Binary on X Start
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
Smithy


Joined: 12 Dec 2011
Posts: 1076

PostPosted: Sun 06 Oct 2019, 17:36    Post subject:  Autostart Binary on X Start  

Hi, I am trying to get this default setup Qtractor file to autostart on Boot after X.
When I manually click on the file it opens up Qtractor immediately.

I tried a little script in Startup, but it says can't open binary files.
And entering Default.qtz in terminal:
# Default.qtz
bash: /usr/bin/Default.qtz: cannot execute binary file: Exec format error

Any ideas on how to achieve this?
opens when clicked on.png
Description 
png

 Download 
Filename  opens when clicked on.png 
Filesize  89.43 KB 
Downloaded  23 Time(s) 
default qtractor file.png
 Description   
 Filesize   13.08 KB
 Viewed   79 Time(s)

default qtractor file.png

Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12800
Location: Stratford, Ontario

PostPosted: Sun 06 Oct 2019, 18:14    Post subject:  

Maybe
Code:
qtractor /usr/bin/Default.qtz
Back to top
View user's profile Send private message 
Smithy


Joined: 12 Dec 2011
Posts: 1076

PostPosted: Sun 06 Oct 2019, 18:45    Post subject:  

Thanks Bill, that's done it.

I've forgotten also about the sleep command.
I was wanting to give the Jack Server a second or so to start first,
before Qtractor starts, maybe Puppy is fast enough to cope, not sure yet.
Is that right for giving a one second delay in the Qtractor startup script below?
(Two separate scripts).


#!/bin/sh
jackd -R -t 1000 -d alsa -p 256 hw:0,0 -r 48000 -n2 -D

#!/bin/sh
qtractor /usr/bin/Default.qtz
sleep 1
Back to top
View user's profile Send private message 
phat7

Joined: 05 Jun 2015
Posts: 163

PostPosted: Mon 07 Oct 2019, 02:01    Post subject:  

Shouldn't you put the sleep before qtractor if you want to delay qtractor?
Back to top
View user's profile Send private message 
Smithy


Joined: 12 Dec 2011
Posts: 1076

PostPosted: Mon 07 Oct 2019, 03:37    Post subject:  

Ha, yes that makes sense phat7, will give it a tweak and see what works.
So long since I used the commands..
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
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.0362s ][ Queries: 12 (0.0073s) ][ GZIP on ]