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 Sun 20 Apr 2014, 20:17
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Start file in: /etc/init.d runs app. but no arg. [ Solved ]
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 4983
Location: Arizona, U.S.A.

PostPosted: Wed 24 Mar 2010, 20:25    Post subject:  Start file in: /etc/init.d runs app. but no arg. [ Solved ]  

As said, the app. starts and works except for the command line argument to pop up ROX.

Typing "ps -C auto-drive" gets: " 4612 ..... /bin/sh /root/my-applications/auto-drive/auto-drive -rox"
It shows that auto-drive was run with the argument "-rox", running "auto-drive -rox" in rxvt works fine.

I assume that the variable that holds the argument gets lost in the rest of the boot process?

Update: I tried exporting the variable to see if it would carry through the boot process... Nope.

Last edited by sunburnt on Wed 24 Mar 2010, 20:48; edited 1 time in total
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 4983
Location: Arizona, U.S.A.

PostPosted: Wed 24 Mar 2010, 20:47    Post subject:  

Success.!!! It works properly when I put the command line in the file: /root/.xinitrc

SO... This is a very good argument for my suggestion in my other post: "Q and Suggestion".
Why not have a dir.: /etc/init.x for startup files to run any apps. late in the boot process?
It appears that using the standard startup dir.: /etc/init.d has some serious drawbacks...
Back to top
View user's profile Send private message 
Shel

Joined: 11 Apr 2009
Posts: 103
Location: Seattle, WA, USA, or Southern France

PostPosted: Thu 25 Mar 2010, 13:55    Post subject:  

There's always /root/Startup for your own start-up stuff.

-Shel
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 4983
Location: Arizona, U.S.A.

PostPosted: Thu 25 Mar 2010, 14:12    Post subject:  

It looks like that dir. is what I was looking for, I searched /root/.xinitrc for a dir. like this.
I wonder what script it is run from?
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 878

PostPosted: Thu 25 Mar 2010, 18:41    Post subject:  

sunburnt,

Another possibility is placing the startup program in JWM like this
Code:
 <StartupCommand>program-name</StartupCommand>


Programs placed in /root/Startup are run at the end of the /usr/sbin/delayedrun script.

Cheers,
s
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.0466s ][ Queries: 11 (0.0069s) ][ GZIP on ]