03-25-2019
Quote:
Originally Posted by
RudiC
Help me out - threads over threads you are trying to mimic a function / behaviour that "professional" packages like screen savers offer at no cost. Why?
Screen savers do not save as much energy nor reduce computer wear and tear like suspend does.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Does anyone know if there is a UNIX-tool available that constantly will check if (some specific) deamons are running and will notify (via email) if one has failed/stopped?
I searched the web, but so far didn't find anything. (3 Replies)
Discussion started by: W2W
3 Replies
2. Shell Programming and Scripting
Hi ,
I have a csh code below which check the process if it's running.
Can any expert advise me on the following:
1) what does this notationmean ">!" and how is it different from the append ">" notation ?
2) how does "setenv" work in this code ?
# Check whether there is a running... (3 Replies)
Discussion started by: Raynon
3 Replies
3. UNIX and Linux Applications
Hi
I would like to check if an instance of a script is already running.
I've seen many different examples, but I haven't the slightest idea as to how to do this.
Can you please help.
Thank you. (5 Replies)
Discussion started by: ladyAnne
5 Replies
4. UNIX for Dummies Questions & Answers
Hi
What is the best command to check if a particular process is running in a linux server or not
To check any java process, I use the below command.
ps -ef |grep jvm
When I execute the above command, it lists me all the processess . The above command should ideally return only the... (6 Replies)
Discussion started by: vr3w3c9
6 Replies
5. Shell Programming and Scripting
How to check what cron is scheduled to run? I don't want to modify anything. Thanks (1 Reply)
Discussion started by: stevensw
1 Replies
6. Shell Programming and Scripting
Hi,
I had search the web for a script to download email, but failed to found one.
I need a bash or perl script that will check for email originating from an address such as john@rambo.com and download the .zip attachment into a specified folder.
Anyone could assist or give me some... (1 Reply)
Discussion started by: mynullvoid
1 Replies
7. Shell Programming and Scripting
Happy New Year
Is there a quick way to check to see if a script is already running.
I want to put in a check in the script to exit, if already running.
Currerntly i can only think of doing it the following way.
# ps -ef | grep -i 3_HOUSEKEEPING_FFTVTL_TO_FFTDSSU_DUPLICATION.ksh |... (5 Replies)
Discussion started by: Junes
5 Replies
8. Shell Programming and Scripting
Hi,
Is there any specific command to use to check only say Running jobs via autorep or similar command for Autosys? (0 Replies)
Discussion started by: sidnow
0 Replies
9. Shell Programming and Scripting
I have a script on a Linux box which scp the files to windows server without any issues. but there are time frames where the windows server will not be available due to maintenance. hence I need to check if the remote location is available before running the scp command.
scp... (3 Replies)
Discussion started by: gpk_newbie
3 Replies
10. Shell Programming and Scripting
Hello,
Could someone do the following bash ubuntu script for me? I have 5 screen processes of bot:
SCREEN -dmS Xbot_instance_1 php core.php -i 1
SCREEN -dmS Xbot_instance_2 php core.php -i 2
SCREEN -dmS Xbot_instance_3 php core.php -i 3
SCREEN -dmS Xbot_instance_4 php core.php -i 4
... (2 Replies)
Discussion started by: kotch
2 Replies
LEARN ABOUT DEBIAN
defaultvisualofscreen
BlackPixelOfScreen(3) XLIB FUNCTIONS BlackPixelOfScreen(3)
NAME
BlackPixelOfScreen, WhitePixelOfScreen, CellsOfScreen, DefaultColormapOfScreen, DefaultDepthOfScreen, DefaultGCOfScreen, DefaultVisualOf-
Screen, DoesBackingStore, DoesSaveUnders, DisplayOfScreen, XScreenNumberOfScreen, EventMaskOfScreen, HeightOfScreen, HeightMMOfScreen, Max-
CmapsOfScreen, MinCmapsOfScreen, PlanesOfScreen, RootWindowOfScreen, WidthOfScreen, WidthMMOfScreen - screen information functions and
macros
SYNTAX
unsigned long BlackPixelOfScreen(Screen *screen);
unsigned long WhitePixelOfScreen(Screen *screen);
int CellsOfScreen(Screen *screen);
Colormap DefaultColormapOfScreen(Screen *screen);
int DefaultDepthOfScreen(Screen *screen);
GC DefaultGCOfScreen(Screen *screen);
Visual *DefaultVisualOfScreen(Screen *screen);
int DoesBackingStore(Screen *screen);
Bool DoesSaveUnders(Screen *screen);
Display *DisplayOfScreen(Screen *screen);
int XScreenNumberOfScreen(Screen *screen);
long EventMaskOfScreen(Screen *screen);
int HeightOfScreen(Screen *screen);
int HeightMMOfScreen(Screen *screen);
int MaxCmapsOfScreen(Screen *screen);
int MinCmapsOfScreen(Screen *screen);
int PlanesOfScreen(Screen *screen);
Window RootWindowOfScreen(Screen *screen);
int WidthOfScreen(Screen *screen);
int WidthMMOfScreen(Screen *screen);
ARGUMENTS
screen Specifies the appropriate Screen structure.
DESCRIPTION
The BlackPixelOfScreen macro returns the black pixel value of the specified screen.
The WhitePixelOfScreen macro returns the white pixel value of the specified screen.
The CellsOfScreen macro returns the number of colormap cells in the default colormap of the specified screen.
The DefaultColormapOfScreen macro returns the default colormap of the specified screen.
The DefaultDepthOfScreen macro returns the default depth of the root window of the specified screen.
The DefaultGCOfScreen macro returns the default GC of the specified screen, which has the same depth as the root window of the screen.
The DefaultVisualOfScreen macro returns the default visual of the specified screen.
The DoesBackingStore macro returns WhenMapped, NotUseful, or Always, which indicate whether the screen supports backing stores.
The DoesSaveUnders macro returns a Boolean value indicating whether the screen supports save unders.
The DisplayOfScreen macro returns the display of the specified screen.
The XScreenNumberOfScreen function returns the screen index number of the specified screen.
The EventMaskOfScreen macro returns the root event mask of the root window for the specified screen at connection setup.
The HeightOfScreen macro returns the height of the specified screen.
The HeightMMOfScreen macro returns the height of the specified screen in millimeters.
The MaxCmapsOfScreen macro returns the maximum number of installed colormaps supported by the specified screen.
The MinCmapsOfScreen macro returns the minimum number of installed colormaps supported by the specified screen.
The PlanesOfScreen macro returns the number of planes in the root window of the specified screen.
The RootWindowOfScreen macro returns the root window of the specified screen.
The WidthOfScreen macro returns the width of the specified screen.
The WidthMMOfScreen macro returns the width of the specified screen in millimeters.
SEE ALSO
AllPlanes(3), ImageByteOrder(3), IsCursorKey(3)
Xlib - C Language X Interface
X Version 11 libX11 1.5.0 BlackPixelOfScreen(3)