LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-10-2007, 11:05 AM   #1
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Rep: Reputation: 28
Recursive trace of bash scripts needed


I'm trying to track down a problem with starting KDE. If ~/.xinitrc is present, startx starts the display manager but not the window manager. I just get a black screen with a white X in the middle. If ~/.xinitrc is missing, KDE starts properly.

set -x enables a trace of commands, but it's not passed on to called scripts.

Is a recursive trace facility available?

TIA
Jim

I'm using Gentoo 2007.0, 2.6.21.6, KDE 3.5.5, xorg 7.1.
 
Old 07-10-2007, 03:40 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Is a recursive trace facility available?
I don't know what you mean by recursive trace, but if you add at the end of .xinitrc a line like:
Code:
/usr/bin/startkde
kde will be used as your wm. Of course the path to startkde may vary for your distro.
 
Old 07-10-2007, 03:53 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
My guess is that something in .xinitrc is not returning properly to the calling script. If you post it, we might be able to take a look at it and tell you what's going on. Otherwise, you could change the shebang line on it to something like "#!/bin/bash -x".
 
Old 07-13-2007, 10:56 AM   #4
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Original Poster
Rep: Reputation: 28
Thanks for the replies.
I did find that I needed to add startkde to the end of .xinitrc.

What I was looking for was something like -x that got passed to any scripts that were called so that each script did not have to be modified - just the top level one.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with recursive bash script me4linux Programming 6 03-20-2007 05:46 AM
Basic GUI (non-x) needed to run bash scripts AP81 Programming 8 02-09-2007 09:38 AM
Help with a recursive chmod script in bash lowpro2k3 Programming 11 07-25-2005 07:03 PM
Recursive search in bash scripting ! zulfilee Linux - Software 3 12-12-2004 10:40 PM
modify bash script - recursive action xscousr Programming 6 09-17-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration