Todd,
Works fine. Thanks.
Gustav
"Todd A. Jacobs" wrote:
>
> On Sat, 1 Jan 2000, Gustav Schaffter wrote:
>
> > I'd like to run X as myself on tty7 and run X as a different user in
> > for instance tty8.
>
> Run:
>
> startx -- :1
>
> where 1 can actually be any number other than whatever's already
> running. :) The following function may suffice for you, if placed in your
> .bashrc file.
>
> x ()
> {
> case $(tty|head --bytes 8|tail --bytes 3) in
> tty)
> startx -- :$(tty|head --bytes 11|tail --bytes 2)
> ;;
> pts)
> echo "You can't run this from inside X Windows!"
> ;;
> esac
> }
--
pgp = Pretty Good Privacy.
To get my public pgp key, send an e-mail to: [EMAIL PROTECTED]
Visit my web site at http://www.schaffter.com
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.