Sponsored Content
Full Discussion: X11 automation?
Operating Systems OS X (Apple) X11 automation? Post 302114600 by dlundh on Tuesday 17th of April 2007 07:43:36 AM
Old 04-17-2007
Tools X11 automation?

I'm a newbie on OS X and Mac, I bought my first Mac (a Mini) in october last year, so bare with me. Smilie

I usually run X11 to have aixterm displayed on my Mac, what I would like to do is to set a specific xhost + every time I start X11, for example xhost +10.0.0.2 every time I start X11.

Also, if you have any other automation tips I'd apprecaite it, the goal is to have an aixterm on the Mac desktop in as few keystrokes as possible.

Thanks!
 

9 More Discussions You Might Find Interesting

1. OS X (Apple)

x11

Tried to install x11 on my powerbook with tiger (apple support can't help me) I want x11 so I can install open office I don't know anything about mac ' (3 Replies)
Discussion started by: Josiah Olson
3 Replies

2. Windows & DOS: Issues & Discussions

cygwin-x/can't install xorg-x11-f100 & xorg-x11-fnts

Hello All. Really a newbie to Linux/Unix. Trying to get into Linux. Using XP PE currently. Installed cygwin and trying to intall cygwin-x. Everything else is setup nice but i can't seem to install these two packages (without whom xwin won't start) 1. xorg-x11-f100 2. xorg-x11-fnts Tried the... (1 Reply)
Discussion started by: binodbdrchand
1 Replies

3. UNIX for Dummies Questions & Answers

X11 problem

Hey guys, I'm on a Solaris 9 boxes and I setup Putty to do X11 forwarding I can get my Xmanager to connect and load Xwindows screens fine. But, sometimes if I lose my putty connection or the app im running crashes X freaks out and deletes my display, setting it to nothing. When I add my display... (2 Replies)
Discussion started by: kingdbag
2 Replies

4. UNIX for Dummies Questions & Answers

Naked x11

X :0 & export DISPLAY=:0 xterm & Can I do this with multiple displays, :1, :2, etc.? (3 Replies)
Discussion started by: uiop44
3 Replies

5. AIX

Xsession and X11

I am trying to set up my Xsession to run on an AIX server calling it from the command line when I telnet to it. I can access the X-window using exceed but not from issueing the Xsession command from a simple telnet or SSH session. Is it possible to have AIX open the Xwindow when called from a... (0 Replies)
Discussion started by: daveisme
0 Replies

6. Solaris

X11 Display

Hi all, How to setup X11 on Solaris? ~Vinodh' Kumar (1 Reply)
Discussion started by: vino_hymi
1 Replies

7. UNIX for Dummies Questions & Answers

X11 privileges

Hi What privileges I need to install X11? Or, in other words, can I install X11 without root privileges? The only user that installed X11 will use it. If it depends on OS version, here is the list of operating systems: Linux Red Hat Enterprise AS/ES 4.0/4.5/5 ... (1 Reply)
Discussion started by: lleontiev
1 Replies

8. UNIX for Advanced & Expert Users

[Solved] putty+x11:How do I pass X11 display rights to "su"?

I can log into a unix system with Putty. I've set the "X11 forwarding" checkbox, and I've verified that I can display an X11 window back on my laptop. What I need to be able to do is "su" to another uid after logging in and then run something which display a window back on my laptop, with the... (2 Replies)
Discussion started by: dkarr
2 Replies

9. AIX

X11 after AIXPert

Hi all, Something stroke me as a curiosity. In aixpert (HLS), one of the policies is to disable X-Server (hls_xhost). Is this somehow related to the sudden inability of our XManager to serve as the display for the AIX 7.1 box? What makes me curious is why disabling X-Server on the AIX box... (0 Replies)
Discussion started by: Adley
0 Replies
PCAP_GET_SELECTABLE_FD(3PCAP)											     PCAP_GET_SELECTABLE_FD(3PCAP)

NAME
pcap_get_selectable_fd - get a file descriptor on which a select() can be done for a live capture SYNOPSIS
#include <pcap/pcap.h> int pcap_get_selectable_fd(pcap_t *p); DESCRIPTION
pcap_get_selectable_fd() returns, on UNIX, a file descriptor number for a file descriptor on which one can do a select() or poll() to wait for it to be possible to read packets without blocking, if such a descriptor exists, or -1, if no such descriptor exists. Some network devices opened with pcap_create() and pcap_activate(), or with pcap_open_live(), do not support select() or poll() (for example, regular network devices on FreeBSD 4.3 and 4.4, and Endace DAG devices), so -1 is returned for those devices. Note that in: FreeBSD prior to FreeBSD 4.6; NetBSD prior to NetBSD 3.0; OpenBSD prior to OpenBSD 2.4; Mac OS X prior to Mac OS X 10.7; select() and poll() do not work correctly on BPF devices; pcap_get_selectable_fd() will return a file descriptor on most of those versions (the exceptions being FreeBSD 4.3 and 4.4), but a simple select() or poll() will not indicate that the descriptor is readable until a full buffer's worth of packets is received, even if the read timeout expires before then. To work around this, an application that uses select() or poll() to wait for packets to arrive must put the pcap_t in non-blocking mode, and must arrange that the select() or poll() have a timeout less than or equal to the read timeout, and must try to read packets after that timeout expires, regardless of whether select() or poll() indicated that the file descriptor for the pcap_t is ready to be read or not. (That workaround will not work in FreeBSD 4.3 and later; however, in FreeBSD 4.6 and later, select() and poll() work correctly on BPF devices, so the workaround isn't necessary, although it does no harm.) Note also that poll() doesn't work on character special files, including BPF devices, in Mac OS X 10.4 and 10.5, so, while select() can be used on the descriptor returned by pcap_get_selectable_fd(), poll() cannot be used on it those versions of Mac OS X. Kqueues also don't work on that descriptor. poll(), but not kqueues, work on that descriptor in Mac OS X releases prior to 10.4; poll() and kqueues work on that descriptor in Mac OS X 10.6 and later. pcap_get_selectable_fd() is not available on Windows. RETURN VALUE
A selectable file descriptor is returned if one exists; otherwise, -1 is returned. SEE ALSO
pcap(3PCAP), select(2), poll(2) 5 April 2008 PCAP_GET_SELECTABLE_FD(3PCAP)
All times are GMT -4. The time now is 09:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy