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? -- Zeng Nan Simple is Beautiful.
Attachment:
pgpAdV7LbnjHe.pgp
Description: PGP signature