The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
number query shafique UNIX for Dummies Questions & Answers 1 11-18-2008 12:32 PM
SCO connected Monitors marcelious SCO 1 06-21-2006 02:24 PM
Two monitors kamazi BSD 0 01-21-2006 06:54 AM
Date & NUmber Validation Query alok_jax Shell Programming and Scripting 4 01-05-2005 07:51 PM
Monitors in Linux Reza Nazarian UNIX for Dummies Questions & Answers 3 08-16-2003 05:32 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-02-2009
mpcengineering mpcengineering is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 7
How to query number of attached monitors in csh?

Hi there,

I am currently writing a csh script in which I want to be able to interrogate the hardware by some means in order to determine whether or not dual monitors are connected. This can't unfortunately be done by looking at xorg.conf because although some of the machines in question have extended desktops over both monitors (in which case the xorg.conf does differ), some do not and just have twinview mirrored desktop enabled (in which case xorg.conf is identical to a single monitor machine).

Basically one thing needs to happen if a CRT is attached as well as an LCD (the dual monitor setup always includes a CRT) and another thing needs to happen if just an LCD is attached, so the solution could also be based around finding if a CRT is attached or not rather than just if 2 monitors are present.

Can anyone suggest any solution to this problem?

Thanks!

Jon

---------- Post updated at 09:21 AM ---------- Previous update was at 04:07 AM ----------

Bah, one of those that never gets replied I fear.....
  #2 (permalink)  
Old 10-02-2009
cfajohnson's Avatar
cfajohnson cfajohnson is offline Forum Advisor  
Shell programmer, author
  
 

Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,361
Quote:
Originally Posted by mpcengineering View Post
Hi there,

I am currently writing a csh script

Top Ten Reasons not to use the C shell
Csh problems
Csh Programming Considered Harmful
  #3 (permalink)  
Old 10-05-2009
mpcengineering mpcengineering is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 7
Thank you for that, but I have already read more than my fair share of replies remarkably similar to yours whenever csh is mentioned as the shell in use.

Just perhaps I am trying to integrate this script into an already existent infrastructure and csh is my only choice...

I appreciate that you want to make people aware, but it really doesn't help to answer the question I have asked does it?
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0