LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

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


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

Code:
/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
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 38
Code:
# man xinit
Quote:
NAME
xinit - X Window System initializer

SYNOPSIS
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
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,507

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


Reply


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 07:56 PM.

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