How to ring the system bell many times without pause?
I am writing a ksh script in cygwin though it could just as easily be bash and am trying to make an alert for myself where the bell rings many times like
Code:
print '\a'
or
Code:
echo '^G'
except I want it to ping me many times not just once. For some reason doing
Code:
print '\a\a\a\a\a\a\a\a\a\a'
or similar doesn't work and I don't want a scenario where I am doing a loop around something like
Code:
print '\a'
sleep 1'
as the pause is not wanted. Is there any easy way to do it?
hi everybody,
I just installed Suse on an old Packard Bell.
When the install was at detecting my moden, it hung. I couldn't free it sooooo, I pressed ctrl+alt+backspace.
Yup that killed the process alright.
The machine went right down and upon reboot it is now at the KDE welcome page.
Here... (2 Replies)
Ok, here's the situation....I have this code...
#include <iostream.h>
#include <stdlib.h>
int main()
{
cout << "\nBlah, and Blah\n\n";
system("PAUSE");
return 0;
}
Now, "system("PAUSE")" gets executed before "cout" does, and I have... (2 Replies)
Hello
I am trying to tar a whole directory. My problem is that I have to omitt a special subdirectory.
Can you tell my how I am supposed to do that?
Unfortunately I am not very good in regular expressions and in programming. :(
Thanks for any help.
Greetings
Marcus (1 Reply)
Hi Everyone:
Last Thursday my system come up those error log and haven't show up any details. Does anyone know what it mean? I need help :confused:
9359F226 0424184208 N U LVDD
00D2B9FE 0424183208 N U tok0
D0775966 0424182908 N U tok0
A9428A1A 0424170108 N U tok0
71B416E1 ... (0 Replies)
This may seem like an odd question, but I've heard that on old Alpha servers running OpenVMS, you could pause the system so that the OS is essentially suspended for a small period of time, then unpause it and it would pick up where it left off. During the pause, all CPU cycles would be halted, all... (3 Replies)
I am running OpenIndiana development version oi_148 32-bit on a seven-year-old Dell Inspiron 8600.
Seems to be running fine except for one particular annoyance: It freezes whenever a system bell/beep plays.
I have mitigated this by turning the system bell off in gnome-terminal, which I use... (3 Replies)
Hi Experts,
I have a code like this.
=====
#include....
int main()
{
int count = 0;
while(1){
printf("\n Interation number is: %d \n ",count);
rv = system(" test.sh > log.txt " );
if (-1 == rv)
{
printf("Could not generate static log: error... (12 Replies)
Discussion started by: binnyjeshan
12 Replies
LEARN ABOUT OSF1
xsoundsentry
xsoundsentry(1X)xsoundsentry(1X)NAME
xsoundsentry - Visual bell monitor
SYNOPSIS
xsoundsentry [options]
OPTIONS
The following list contains general usage options for the xsoundsentry command: Specifies the number of times an action will occur when the
terminal or workstation bell sounds. The default value is 1. Specifies the length of time that must pass between bell events. If a bell
event occurs within the specified suppress time after a previous bell action, it will be ignored. The default suppress time is 200 mil-
liseconds.
The following options support indicator modes: Causes a screen refresh, which appears as a flashing of the screen. If you include the
-refreshColor option, you can specify a color to be used in the refresh action. If you include the -refreshGeom option, you can specify
the portion of the screen to be refreshed. Causes a command to be executed whenever a bell event occurs. Use the -prog option to specify
the command you want to be executed. Displays a small sound icon window that flashes whenever a bell event occurs. Use the -fg and -bg
options to specify the foreground and background colors for the icon window.
DESCRIPTION
The xsoundsentry utility provides visual indications of bell events that occur in the X server. These bell events result from calls to
XBell. (See XBell(3X11)). This utility is useful for people with hearing disabilities and well as those who work in noisy environments.
RESOURCES
The xsoundsentry command has the following general resources: Specifies the default behavior of the utility. The keyword specifier can be
Refresh, Bitmap, or Command. Specifies the length of time that must pass between bell events. If a bell event occurs within the specified
suppress time after a previous bell action, it will be ignored. The default suppress time is 200 milliseconds. Specifies the number of
times an action will occur when the terminal or workstation bell sounds. The default value is 1.
The xsoundsentry command has the following refresh action resources: Specifies the color to be used in the refresh action. Specifies the
portion of the screen to be refreshed. Specifies the length of time the refresh window will be displayed. The default value is 50 mil-
liseconds.
The xsoundsentry command has the following command action resource: Causes the specified command (string) to be executed whenever a bell
event occurs.
The xsoundsentry command has the following bitmap action resource: Specifies the length of time the refresh window will be displayed. The
default value is 50 milliseconds.
EXAMPLES
This example causes a red flash on the screen whenever a bell event occurs: xsoundsentry -refresh -refreshColor redo This example causes a
box to flash in the center of a 1280x1024 screen: xsoundsentry -refreshGeom 800x800+240_112 This example executes the echo hello command
whenever a bell event occurs: xsoundsentry -command -prog 'echo hello'
SEE ALSO XBell(3X11)xsoundsentry(1X)