05-08-2011
you're a life saver, these were scripts given to us, and we were supposed to translate and tell what they do.. I sat for 2 hours and I think i reached the end of google!.. thank you!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm getting the following errors when I try to write a script to unzip some zip files. When I use the free trial copy of the commerical winzip program, however, they work fine. When I use -l or -t on unzip it indicates no errors. When I use the -o switch interactively from the bash command line it... (1 Reply)
Discussion started by: siegfried
1 Replies
2. Shell Programming and Scripting
Could anyone help me to Write a script in BASH Shell to determine the percentage of system disk space you are using. (1 Reply)
Discussion started by: boris
1 Replies
3. Shell Programming and Scripting
Hi,
I use AIX (ksh) and Linux (bash) servers. I'm trying to do scripts to will run in both ksh and bash, and most of the time it works. But this time I don't get it in bash (I'm more familar in ksh).
The goal of my script if to read a "config file" (like "ini" file), and make various report.... (2 Replies)
Discussion started by: estienne
2 Replies
4. Shell Programming and Scripting
I want to write a bash script to:
1. Send an email from localhost to an external gmail account. (gmail then automatically forwards the message back to a pop account on the same server.
2. Script waits 3 minutes then checks to see if the email arrived, and if not, it sends an email to... (9 Replies)
Discussion started by: sallyanne
9 Replies
5. Shell Programming and Scripting
Im trying to write a script using the host command but its not working properly. I cant understand what Im doing wrong. When I use it at the command prompt, it works fine. But its being used actually in the script, it says its not found: 2 SERVFAIL. Can anyone help me? Here's what I have so far: no... (6 Replies)
Discussion started by: relsha
6 Replies
6. Shell Programming and Scripting
Hi,
I need to automate some repacking tasks of a boot image for Android
When in command line, I can use this command:
mkbootfs /path/to/root > /path/to/ramdisk-recovery.cpio;However, if I try to run the command from a shell script under Ubuntu, it fails and outputs to stdout instead of the... (27 Replies)
Discussion started by: Phil3759
27 Replies
7. Shell Programming and Scripting
Hello,
I want to write a bash script to delete the content after '#'. However, if '#' appears in a string with "", ignore this. For example,
input file:
test #delete
"test #not delete"
Output file:
test
"test #not delete"
Does anyone know how to write this script?
Thanks (1 Reply)
Discussion started by: jeffwang66
1 Replies
8. Shell Programming and Scripting
Hi,
I have a bash script to run many system commands on CentOS machine, but I am puzzled by some commands had no effect on parent environment.
For example, I want to refresh the desktop xdg menu when some processes added or deleted items from desktop xdg menu. If I run "killall gnome-panel"... (4 Replies)
Discussion started by: hce
4 Replies
9. Shell Programming and Scripting
Hi,
I wanted to load data from HDFS to HIVE by writing bash script.
Description:
I have written a bash script to validate the data and loaded validated data from local file system to HDFS. Now in the same bash script i wanted to load the data from HDFS to HIVE. How can i do it ? Also how tyhe... (2 Replies)
Discussion started by: shree11
2 Replies
10. Shell Programming and Scripting
Hi,
I have a script file where i'm validatig the input file and storing the validated records on HDFS.
I wanted to load data from HDFS to HBASE using pig script. So for that i have created a HBASE table and written pig script to load data from HDFS to HBASE which is working fine. Now i wanted... (0 Replies)
Discussion started by: shree11
0 Replies
LEARN ABOUT ULTRIX
xactivatescreensaver
XSetScreenSaver(3X11) MIT X11R4 XSetScreenSaver(3X11)
Name
XSetScreenSaver, XForceScreenSaver, XActivateScreenSaver, XResetScreenSaver, XGetScreenSaver - manipulate the screen saver
Syntax
XSetScreenSaver(display, timeout, interval, prefer_blanking, allow_exposures)
Display *display;
int timeout, interval;
int prefer_blanking;
int allow_exposures;
XForceScreenSaver(display, mode)
Display *display;
int mode;
XActivateScreenSaver(display)
Display *display;
XResetScreenSaver(display)
Display *display;
XGetScreenSaver(display, timeout_return, interval_return, prefer_blanking_return, allow_exposures_return)
Display *display;
int *timeout_return, *interval_return;
int *prefer_blanking_return;
int *allow_exposures_return;
Arguments
allow_exposures
Specifies the screen save control values. You can pass or
allow_exposures_return
Returns the current screen save control value or
display Specifies the connection to the X server.
interval Specifies the interval, in seconds, between screen saver alterations.
interval_return
Returns the interval between screen saver invocations.
mode Specifies the mode that is to be applied. You can pass or
prefer_blanking
Specifies how to enable screen blanking. You can pass or
prefer_blanking_return
Returns the current screen blanking preference or
timeout Specifies the timeout, in seconds, until the screen saver turns on.
timeout_return
Returns the timeout, in seconds, until the screen saver turns on.
Description
Timeout and interval are specified in seconds. A timeout of 0 disables the screen saver (but an activated screen saver is not deacti-
vated), and a timeout of -1 restores the default. Other negative values generate a error. If the timeout value is nonzero, enables the
screen saver. An interval of 0 disables the random-pattern motion. If no input from devices (keyboard, mouse, and so on) is generated for
the specified number of timeout seconds once the screen saver is enabled, the screen saver is activated.
For each screen, if blanking is preferred and the hardware supports video blanking, the screen simply goes blank. Otherwise, if either
exposures are allowed or the screen can be regenerated without sending events to clients, the screen is tiled with the root window back-
ground tile randomly re-origined each interval minutes. Otherwise, the screens' state do not change, and the screen saver is not acti-
vated. The screen saver is deactivated, and all screen states are restored at the next keyboard or pointer input or at the next call to
with mode
If the server-dependent screen saver method supports periodic change, the interval argument serves as a hint about how long the change
period should be, and zero hints that no periodic change should be made. Examples of ways to change the screen include scrambling the col-
ormap periodically, moving an icon image around the screen periodically, or tiling the screen with the root window background tile, ran-
domly re-origined periodically.
can generate a error.
If the specified mode is and the screen saver currently is deactivated, activates the screen saver even if the screen saver had been dis-
abled with a timeout of zero. If the specified mode is and the screen saver currently is enabled, deactivates the screen saver if it was
activated, and the activation timer is reset to its initial state (as if device input had been received).
can generate a error.
The function activates the screen saver.
The function resets the screen saver.
The function gets the current screen saver values.
Diagnostics
Some numeric value falls outside the range of values accepted by the request.
Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument
defined as a set of alternatives can generate this error.
See Also
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
XSetScreenSaver(3X11)