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,02:48 QUOTE

I am almost done.. .but I can't get my .xinitrc script to run my script to start the slide show for my digital picture frame project.  The script works, when I run it from a shell window, it works fine... just does not seem to want to run from .xinitrc.

Below is the .xinitrc script... I have moved the line that calls the script I want to run,/mnt/hda1/mydsl/scripts/cron_start_frame.sh many different places (before and after the call to start fluxbox), I have put in the full path name, tried running it from the ramdisk home directory, from the hard drive, but the results are the same... no go.

the torsmo command seems to be upset that my laptop battery is dysfunctional, as it gave me an error, so I commented it out..... although I am not sure what that line does.

Any suggestions?  


# put X windows programs that you want started here.
# Be sure to add at the end of each command the &

KEYTABLE="$(getknoppixparam.lua KEYTABLE)"
DESKTOP="$(getoption.lua $HOME/.desktop wm)"
ICONS="$(getoption.lua $HOME/.desktop icons)"

umix -lf .umix 2>/dev/null

[ -f .mouse_config ] && sh .mouse_config &

/etc/init.d/dsl-functions

# For non-US Keyboards
if [ ${KEYTABLE:0:2} != "us" ]; then
 xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
fi
if [ "$ICONS" == 1 ]; then
 for x in `ls -1 .xtdesktop/*.hide 2>/dev/null`; do rm -f ${x%.*}; done
 iconsnap.lua &>/dev/null &
 xtdesk.sh
fi
#if egrep -qv lowram /proc/cmdline 2>/dev/null; then
#fi

#torsmo 2 &
#>/dev/null &
# dillo /usr/share/doc/dsl/getting_started.html &>/dev/null
/mnt/hda1/mydsl/scripts/cron_start_frame.sh &
# xset s off
case $DESKTOP in
 fluxbox )
   fluxter &>/dev/null &
   wmswallow -geometry 70x80 docked  docked.lua &
   exec fluxbox 2 &>/dev/null  
 ;;
 jwm )
   ./.background
   sleep 2
   exec jwm 2>/dev/null
 ;;
 * )
#  torsmo 2>/dev/null &
 exec fluxbox 2 &
# >/dev/null
 ;;
esac
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Oct. 28 2007,03:08 QUOTE

I'm guessing it's not launching because /mnt/hda1 could possibly be not mounted yet?

Quote
...many different places (before and after the call to start fluxbox)...
Has to be before

Quote
tried running it from the ramdisk home directory
If you do it this way, make sure you have it saved i.e. in backup, and restored.

Also, your .xinitrc is a bit messed up. Instead of
Quote
exec fluxbox 2 &
# >/dev/null
it should be "fluxbox 2>/dev/null" though I don't think that should affect anything
Back to top
Profile PM 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Oct. 28 2007,06:58 QUOTE

Quote (^thehatsrule^ @ Oct. 27 2007,23:08)
Also, your .xinitrc is a bit messed up. Instead of
Quote
exec fluxbox 2 &
# >/dev/null
it should be "fluxbox 2>/dev/null" though I don't think that should affect anything

...same error after 'fluxbox )'

It looks like this was edited, so maybe "fluxter -w &>/dev/null &" ?
(that's how it is on my copy)
Back to top
Profile PM 
vstech Offline





Group: Members
Posts: 18
Joined: Oct. 2007
Posted: Oct. 28 2007,12:25 QUOTE

Yes, the script is edited and now messed up a bit.. I had removed the >null parts thinking maybe it would show an error message (if there was one ) so that I could find the problem.

hda1 is already mounted by bootlocal.sh
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 28 2007,13:29 QUOTE

Code Sample
/mnt/hda1/mydsl/scripts/cron_start_frame.sh &
Is this a graphical or non-graphical application? It's possible that it actually is running, but since it's being run directly from .xinitrc maybe it's putting everything out to tty1

Try this:
Code Sample
aterm -e /mnt/hda1/mydsl/scripts/cron_start_frame.sh &


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
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