HD Install :: .xinitrc not running script



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

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.

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.

/etc/init.d/dsl-functions

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

. /etc/init.d/dsl-functions

Next Page...
original here.