8 More Discussions You Might Find Interesting
1. AIX
Dear All
Please how can I create a user which would be only able to manage queue printer like creating, release, hold etc a printer queue. He would for example be able to enter commands like :
- lpstat -pprintqueue where printqueue is an existing queue on the server
- enable printqueue... (0 Replies)
Discussion started by: sobnc
0 Replies
2. Shell Programming and Scripting
Dear All,
I need to restrict the users in our server.
1.History & history -c command working all groups & others.So i need to restrict history -c option for groups & others .
2.Any option available to view user activity with all
Eg--->user1 Jul22 10:20:11 date
3.Any other Special... (7 Replies)
Discussion started by: kpoobathi
7 Replies
3. Solaris
hi frnds
I created sparse root zone, in that zone when i try to change the passwd it is giving permission denied.
what is the reason and how to chnage the root passwd in the zone. can u please explain the query. (4 Replies)
Discussion started by: sravan ega
4 Replies
4. Solaris
unable to run smgroup / smadd command to create or modify the users and directories. (1 Reply)
Discussion started by: sendhils13
1 Replies
5. Solaris
Hi All.....
How many maximum no of users can be created in solaris 10.0
Waiting for the reply ..... (2 Replies)
Discussion started by: sendhils13
2 Replies
6. Solaris
hi '
i am creating a primary group and a secondary group for a user.
#groupadd -g 101 test
#groupadd -g 102 test1
#useradd -d /export/home/user1 -m -s /bin/ksh -g test -G test user1
in /etc/passwd i can find the username as user1 and group name as test
and where can i find the... (4 Replies)
Discussion started by: madhudeepan
4 Replies
7. UNIX for Dummies Questions & Answers
Hey guys how do you check if an account is locked in tru64, and how do you unlock it? (1 Reply)
Discussion started by: sbn
1 Replies
8. Solaris
Hello, I inhearited several solaris machines (read that about 30 of them) and have a need to be able to manage the user accounts remotely.... Currently the machines all have the same users but not exactly the same spelling (each machine was locally managed before and thus every single passwd/shadow... (2 Replies)
Discussion started by: wgriffin
2 Replies
LEARN ABOUT OPENDARWIN
tcl_standardchannels
Standard Channels(3) Tcl Library Procedures Standard Channels(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_StandardChannels - How the Tcl library deals with the standard channels
_________________________________________________________________
DESCRIPTION
This page explains the initialization and use of standard channels in the Tcl library.
The term standard channels comes out of the Unix world and refers to the three channels automatically opened by the OS for each new appli-
cation. They are stdin, stdout and stderr. The first is the standard input an application can read from, the other two refer to writable
channels, one for regular output and the other for error messages.
Tcl generalizes this concept in a cross-platform way and exposes standard channels to the script level.
APIs
The public API procedures dealing directly with standard channels are Tcl_GetStdChannel and Tcl_SetStdChannel. Additional public APIs to
consider are Tcl_RegisterChannel, Tcl_CreateChannel and Tcl_GetChannel.
INITIALIZATION OF TCL STANDARD CHANNELS
Standard channels are initialized by the Tcl library in three cases: when explicitly requested, when implicitly required before returning
channel information, or when implicitly required during registration of a new channel.
These cases differ in how they handle unavailable platform- specific standard channels. (A channel is not ``available'' if it could not be
successfully opened; for example, in a Tcl application run as a Windows NT service.)
1) A single standard channel is initialized when it is explicitly specified in a call to Tcl_SetStdChannel. The state of the other
standard channels are unaffected.
Missing platform-specific standard channels do not matter here. This approach is not available at the script level.
2) All uninitialized standard channels are initialized to platform-specific default values:
(a) when open channels are listed with Tcl_GetChannelNames (or the file channels script command), or
(b) when information about any standard channel is requested with a call to Tcl_GetStdChannel, or with a call to Tcl_GetChannel
which specifies one of the standard names (stdin, stdout and stderr).
In case of missing platform-specific standard channels, the Tcl standard channels are considered as initialized and then immediately
closed. This means that the first three Tcl channels then opened by the application are designated as the Tcl standard channels.
3) All uninitialized standard channels are initialized to platform-specific default values when a user-requested channel is registered
with Tcl_RegisterChannel.
In case of unavailable platform-specific standard channels the channel whose creation caused the initialization of the Tcl standard
channels is made a normal channel. The next three Tcl channels opened by the application are designated as the Tcl standard chan-
nels. In other words, of the first four Tcl channels opened by the application the second to fourth are designated as the Tcl stan-
dard channels.
RE-INITIALIZATION OF TCL STANDARD CHANNELS
Once a Tcl standard channel is initialized through one of the methods above, closing this Tcl standard channel will cause the next call to
Tcl_CreateChannel to make the new channel the new standard channel, too. If more than one Tcl standard channel was closed Tcl_CreateChannel
will fill the empty slots in the order stdin, stdout and stderr.
Tcl_CreateChannel will not try to reinitialize an empty slot if that slot was not initialized before. It is this behavior which enables an
application to employ method 1 of initialization, i.e. to create and designate their own Tcl standard channels.
tclsh
The Tcl shell (or rather Tcl_Main) uses method 2 to initialize the standard channels.
wish
The windowing shell (or rather Tk_MainEx) uses method 1 to initialize the standard channels (See Tk_InitConsoleChannels) on non-Unix plat-
forms. On Unix platforms, Tk_MainEx implicitly uses method 2 to initialize the standard channels.
SEE ALSO
Tcl_CreateChannel(3), Tcl_RegisterChannel(3), Tcl_GetChannel(3), Tcl_GetStdChannel(3), Tcl_SetStdChannel(3), Tk_InitConsoleChannels(3),
tclsh(1), wish(1), Tcl_Main(3), Tk_MainEx(3)
KEYWORDS
standard channels
Tcl 7.5 Standard Channels(3)