04-10-2006
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
If I execute
mypath=`cygpath -w ../`
echo $mypath
I get
d:\unix\nextVersion\script
OK, d:\unix\nextVersion\script is the correct windows version of the path, but it is in absolute form. I would prefer it if cygpath left it in relative form, i.e.
echo $mypath
should output
..\
... (0 Replies)
Discussion started by: fabulous2
0 Replies
2. UNIX for Dummies Questions & Answers
Hi,
what is the unix command to get the list of all open ports in unix?
Thank you in advance (1 Reply)
Discussion started by: zainab
1 Replies
3. AIX
I want to know list of userdefined ports available in aix .Suppose I want to run a process at port 20 .using netstat i could able to find out that no process is listening at that 20 .Still I am not able to bring my process up at port 20.
Thanks
kittu (1 Reply)
Discussion started by: kittu1979
1 Replies
4. Solaris
Hello,
One of our developers is asking for a command/script in Solaris similar to "netstat -anp" in Linux. He gave this output as an example:
root@xxx:~# netstat -anp | grep LISTEN
tcp 0 0 0.0.0.0:7937 0.0.0.0:* LISTEN 16082/nsrexecd
tcp 0 ... (7 Replies)
Discussion started by: vimes
7 Replies
5. Shell Programming and Scripting
suppose i ahve a shell script Nsdnet.sh inside a directory /dialp/Release/bin
another file nsdnet_file.csv is under the same directory. Now in the shell script i have call a java file, which reads the csvfile from the commandline.
Now when i run the file as
$ ./Nsdnet.sh ./nsdnet_file.csv
then... (5 Replies)
Discussion started by: priyanka3006
5 Replies
6. Solaris
Hi,
I have 2 queries:
a) Is it possible that a port no., not defined in /etc/services, be used by an application.
b) how do i find the list of ports is being currently used on my Solaris box(if entry not made into /etc/services) I donot have "lsof" installed on my box. (3 Replies)
Discussion started by: EmbedUX
3 Replies
7. Shell Programming and Scripting
Hi,
I'm in need of a script that can monitor a list of 12 ports.. If one of the ports isn't in listening mode then email me..
The list of ports are 26401 - 26412.. (6 Replies)
Discussion started by: eclipseagent
6 Replies
8. Shell Programming and Scripting
HOw can I create a tar file with relative paths
find . -depth -print | xargs tar -cvf /tmp/file.tar ?
Thanks to all who answer (1 Reply)
Discussion started by: BeefStu
1 Replies
9. UNIX for Dummies Questions & Answers
How do i list the running process and also view the ports they are listening to at the same time? (3 Replies)
Discussion started by: mena
3 Replies
10. UNIX for Dummies Questions & Answers
Hi,
Could anyone help me with the following questions about relative addressing.
The questions are:
1) Enter below the command to copy the file basics.pptto the folder outline, using relative addressing.
2) Enter below to move the file .secrets.doc to the folder Day1 using relative addressing.... (1 Reply)
Discussion started by: ml123
1 Replies
LEARN ABOUT HPUX
xsetpointermapping
XSetPointerMapping() XSetPointerMapping()
Name
XSetPointerMapping - set the pointer button mapping.
Synopsis
int XSetPointerMapping(display, map, nmap)
Display *display;
unsigned char map[];
int nmap;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
map Specifies the mapping list.
nmap Specifies the number of items in the mapping list.
Returns
MappingSuccess on success; MappingBusy on failure.
Description
XSetPointerMapping() sets the mapping of the pointer buttons. Elements of the map list are indexed starting from 1. The length of the
list nmap must be the same as XGetPointerMapping() returns (you must call that first). The index is a physical button number, and the ele-
ment of the list defines the effective button number. In other words, if map[2] is set to 1, when the second physical button is pressed, a
ButtonPress event will be generated if Button1Mask was selected but not if Button2Mask was selected. The button member in the event will
read Button1.
No two elements can have the same non-zero value (else a BadValue error). A value of zero for an element of map disables a button, and
values for elements are not restricted in value by the number of physical buttons. If any of the buttons to be altered are currently in
the down state, the returned value is MappingBusy and the mapping is not changed.
This function returns either MappingSuccess or MappingBusy. XSetPointerMapping() generates a MappingNotify event when it returns Mapping-
Success.
Errors
BadValue Two elements of map[] have same non-zero value.
nmap not equal to XGetPointerMapping() return value.
See Also
XChangeActivePointerGrab(), XChangePointerControl(), XGetPointerControl(), XGetPointerMapping(), XGrabPointer(), XQueryPointer(), XUngrab-
Pointer(), XWarpPointer().
Xlib - Pointer XSetPointerMapping()