Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ 1 [2] 3 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: .xinitrc not running script< Next Oldest | Next Newest >
vstech Offline





Group: Members
Posts: 18
Joined: Oct. 2007
Posted: Oct. 28 2007,17:26 QUOTE

Quote (mikshaw @ Oct. 28 2007,08:29)
Try this:
Code Sample
aterm -e /mnt/hda1/mydsl/scripts/cron_start_frame.sh &

Ok, I tried adding the code you show here, but it did not make a difference that I could tell.  I replaced my line that calls the cron_start_frame.sh with your code.
Back to top
Profile PM 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Oct. 28 2007,17:42 QUOTE

Quote (vstech @ Oct. 28 2007,12:26)
Quote (mikshaw @ Oct. 28 2007,08:29)
Try this:
Code Sample
aterm -e /mnt/hda1/mydsl/scripts/cron_start_frame.sh &

Ok, I tried adding the code you show here, but it did not make a difference that I could tell.  I replaced my line that calls the cron_start_frame.sh with your code.

I've never used cron, but assume you've got  /etc/crontab correctly edited and working the way you want? edit: might be interesting to see if other cron scripts work from .xinitrc
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Oct. 28 2007,18:45 QUOTE

Quote
...same error after 'fluxbox )'

It looks like this was edited, so maybe "fluxter -w &>/dev/null &" ?
(that's how it is on my copy)
No, that's not a problem if that application is not used. However, having the stranded "2" in "exec fluxbox 2 &" is incorrect...

vstech: if you want to see errors from your script, you could either check the console VT (i.e. ctrl+alt+f1) or use a log, such as
Code Sample
/mnt/hda1/mydsl/scripts/cron_start_frame.sh &>startframe.log &
then look in ~/startframe.log

It also may be helpful to show the contents of that script, as well as a `ls -l` of it.
Back to top
Profile PM 
vstech Offline





Group: Members
Posts: 18
Joined: Oct. 2007
Posted: Oct. 28 2007,19:24 QUOTE

ok,

thehatsrule, I added the line to make a log script, but no script is ever made... I am thinking the line is never executed to run the cron_start_frame.sh, but I have moved that line all around the .xinitrc script and NEVER get a log file.

Here is the contents of the cron_start_frame.sh:

#!/bin/sh
#
#Script to run Digital Picture Frame using FEH


#hide the cursor after 15 seconds
/usr/X11R6/bin/unclutter -idle 5 &
/etc/init.d/dsl-functions

#start slide show
/usr/bin/feh -qxzrZF -D 10 /mnt/hda6/pictures/*.* &

exit 0

as for the ls -l of the cron_start_frame.sh, the owner is dsl, the group staff, and I did a chmod of 777 on it to be sure it was executable.  

It does run when executed from a shell window... runs great in fact, just does not run from the .xinitrc script.
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Oct. 28 2007,20:29 QUOTE

/etc/init.d/dsl-functions

is not needed, but if you want it, it should be

. /etc/init.d/dsl-functions


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
18 replies since Oct. 28 2007,02:48 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ 1 [2] 3 4 >/
reply to topic new topic new poll
Quick Reply: .xinitrc not running script

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code