On Tue, May 27, 2003 at 01:19:58PM +0800, jqdkf@zju.edu.cn wrote: > On Mon, May 26, 2003 at 11:45:48PM -0500, Kent West wrote: > > jqdkf@zju.edu.cn wrote: > > > > >Hi, > > > > > >I wrote a shell script named sx to start a X session from console, it is > > >written like this > > > > > >$ cat bin/sx > > >#!/bin/bash > > >startx > /dev/null 2>&1 & > > > > > >This script always do the trick, but since recently I changed to sarge, > > >it doesn't work. And what seems confusing is that if I type them directly > > >from console, it works well > > > > > >$ startx > /dev/null 2>&1 & > > > > > >it will start an X session. I wonder what's wrong with it? > > > > > > > > Try starting a new shell first, and see if that has the same symptoms as > > the script: > > > > $ /bin/bash > > # startx > /dev/null 2>&1 & > > > > > I do this under shell: > $ bash > $ sx > but nothing happens, then > $ startx > /dev/null 2>&1 & > and I get into X, any ideas? Try redirecting to /tmp/sx.err instead of /dev/null, then when it fails you can cat /tmp/sx.err and see if it contains any helpful error messages. -- Pigeon Be kind to pigeons Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F
Attachment:
pgpmEB8IlfTdM.pgp
Description: PGP signature