LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Shell-Script Problem? (https://www.linuxquestions.org/questions/slackware-14/shell-script-problem-92581/)

x4v013 09-14-2003 01:48 AM

Shell-Script Problem?
 
Hi, I had mandrake linux for a couple weeks, then i decided i wanted to give slackware a try, so I completely reformatted, installed win xp pro, then installed slackware without any problems...but when i try to run a shell script my screen goes black and I lose power to my keyboard the next time I turn on my computer...I tried both GNOME and KDE, and KDE with 800x600res...can anyone help?

Cerbere 09-14-2003 03:59 AM

That script wouldn't look anything like this:
Code:

# !/bin/sh

shutdown -h now

Would it?

Enjoy!
--- Cerbere

theSuperJason 09-14-2003 07:43 PM

Love to help - but you need to help others help you.

(Read: post the script you're having trouble with)

TSJ

x4v013 09-15-2003 12:13 AM

umm...I've tried

Code:

kdm
Code:

gdm
and


Code:

kdm  800x600 60

theSuperJason 09-15-2003 04:31 AM

Sheez, it's like blood from a stone ;-)

Are you running this code in your 'xinitrc' file? Or just typing it at the console in runlevel 3 (non-graphical login)?

If you want to start X after logging in to runlevel 3, just type 'startx' at the prompt, otherwise edit '/etc/inittab' to use runlevel 4 if you prefer a graphical login.

Is that what you were after?

TSJ

x4v013 09-16-2003 12:00 AM

umm...I'm doing it at the non-graphical login, when I enter startx it goes black just like all the other times..:(

theSuperJason 09-16-2003 12:12 AM

Right. Sounds like it's an X config issue and not any problem with 'kdm' or 'gdm'.

Have a look at '/var/log/XFree86.0.log' and run '/usr/X11R6/bin/xf86config' as root if you're getting X startup errors.

HTH, TSJ

x4v013 09-17-2003 12:15 AM

w00t, after editing it, it works now, thanks a lot! :)


All times are GMT -5. The time now is 11:55 AM.