Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-18-2007, 12:52 AM   #1
Senior Member
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,533

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Help me understand this shell script

Can someone enlighten me as to what the double-dashes (--) serve in the shell script statement below?

/usr/X11R6/bin/xinit /bin/UpdateUI $CDVERSION $PARAM -- /usr/X11R6/bin/X -config /etc/X11/intel/xorg.conf
Also, when the command above is run, I receive a warning message (or two). Would it be ok for me to append to the end of the statement a '2> /dev/null', or will this affect the output of the X11 server?

I do not run the shell script containing the line above from the command line, but from the init of a Linux distro I burn to CD-R. Thus it makes it difficult to test. I hope this makes sense.
Old 10-18-2007, 01:55 AM   #2
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 39
# man xinit
xinit - X Window System initializer

xinit [ [ client ] options ] [ -- [ server ] [ display ] options ]
It is just the way xinit wants to accept command line options.
Old 10-18-2007, 09:02 AM   #3
Senior Member
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,533

Original Poster
Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Thank you.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
understand variable type in shell script qrshat Programming 5 09-09-2006 02:12 AM
Alias or shell script to confirm 'exit' commands from a shell rose_bud4201 Programming 2 03-08-2006 02:34 PM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM
my firewall script: unable to understand its function Niceman2005 Linux - Security 3 11-16-2005 07:21 PM
what is kernel, shell? can help me understand the concept as compared to microsoft wi zhuzhu Debian 2 11-16-2005 07:16 PM

All times are GMT -5. The time now is 04:47 AM.

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