Can someone help me debug a c program I am running? It gives me segmentation fault.
I want to turn on debugging. Can some one give the command to turn it on?
Below is the error I get:
Segmentation Fault (core dumped) (3 Replies)
Please help, I have tried to run this program countless times and still nothing. Please tell me what I'm doing wrong.
$ cat>test
count=1
while
do
echo "5"
read number
echo $5
let count=count+ 1
done
exit 0
^C$ ksh test
$ ^C
$ ksh test
$
$ nothing happend (6 Replies)
Im new and wanted to know if im in the unix terminal and lets say i want to run microsoft word for example. i go in and go into the HD and then keep going and i type ls and see that microsoft word.app is there. how do i run it from that? (4 Replies)
Hello all sorry didnt know where to post it
i compiled simple program that using "System.getProperty("user.dir");"
now i compiled the program under directory foo and and its running great when i do "java myapp"
i included this directory in the $PATH env variable so i could see it fro any where... (1 Reply)
Hey can anyone tell me the korn script code to implement an interactive integer calculator using the shell's built in arithemetic expression evaluation (2 Replies)
Hi,
I have a program in /opt/local/bin, my path in my .profile is
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
however when i type the program name it cannot find it, however i know the program is in /opt/local/bin?
Thanks (2 Replies)
Hello ,
I want to run some shell scripts in my perl script. I need to read the script's name from a file ( this file includes the name of all the scripts) and run the script one by one.. Please let me know how to go ..
Thanks in advance,
Radha (5 Replies)
Hey, im editing the passwd file so that when the user ben logs in it runs my assign program.
I changed the last column from
to
Then when i log in i get...
There is no problem with the program because it runs fine when i open it normally.
Any help much appreciated. (8 Replies)
i have created two files named server and client then when i run the server program it says the server is waiting(./server 5555) then when i run the client program it says "client error:connection refused" can u plz help me to run it?:( (7 Replies)
I have a bash script that launches another problem. I need to run that program under a certain user account. The script itself is run using 'sudo <scriptname>'.
#!/bin/bash
myprogram=...
exec "$myprogram"
How would this be done? (1 Reply)
Discussion started by: Carson Dyle
1 Replies
LEARN ABOUT REDHAT
xdevicebell
XDeviceBell(3X11) X FUNCTIONS XDeviceBell(3X11)NAME
XDeviceBell - ring a bell on a device supported through the input extension
SYNTAX
Status XDeviceBell(display, device, feedbackclass, feedbackid, percent)
Display *display;
XDevice *device;
XID *feedbackclass;
XID *feedbackid;
int *percent;
ARGUMENTS
display Specifies the connection to the X server.
device Specifies the device with which the bell is associated.
feedbackclass
Specifies the class of the feedback with which the bell is associated.
feedbackid Specifies the id of the feedback with which the bell is associated.
percent Specifies the volume in the range -100 to 100 at which the bell should be rung.
DESCRIPTION
The XDeviceBell request causes the server to ring a bell on the specified feedback of the specified device, if possible. The specified
volume is relative to the base volume for the bell. If an invalid device is specified, a BadDevice error will be returned. The feedback-
class and feedbackid parameters contain values returned by an XGetFeedbackControl request and uniquely identify the bell to ring. If a
feedbackclass is specified that does not support a bell, or if a nonexistent feedbackid is specified, or a percent value is specified that
is not in the range -100 to 100, a BadValue error will be returned.
The volume at which the bell is rung when the percent argument is nonnegative is:
base - [(base * percent) / 100] + percent
The volume at which the bell rings when the percent argument is negative is:
base + [(base * percent) / 100]
To change the base volume of the bell, use XChangeFeedbackControl.
XDeviceBell can generate a BadDevice or a BadValue error.
DIAGNOSTICS
BadDevice An invalid device was specified. The specified device does not exist, or has not been opened by this client via XOpenInputDe-
vice.
BadValue An invalid feedbackclass, feedbackid, or percent value was specified.
SEE ALSO XChangeFeedbackControl(3X), XBell(3X)
Programming With Xlib
X Version 11 Release 6.6 XDeviceBell(3X11)