Sponsored Content
Full Discussion: smit.script
Contact Us Forum Support Area for Unregistered Users & Account Problems smit.script Post 302136206 by PamRainwater on Sunday 16th of September 2007 11:02:44 AM
Old 09-16-2007
smit.script

what is the smit.script file and does it ever need to be cleaned up or deleted
 

10 More Discussions You Might Find Interesting

1. AIX

How to invoke SMIT GUI

Hi All I am using AIX 5.1, i have Cygwin-X installed on my Windows XP Pro desktop, I had started the X-Windows Session and logged into the remote AIX server via telnet. When i issue the command smit i only get the command line version of the SMIT, How can i invoke the SMIT GUI version ? ... (4 Replies)
Discussion started by: kswaraj
4 Replies

2. UNIX for Dummies Questions & Answers

smit.script

Can someone tell me what the smit.script file does? I'm having a problem with one of my boxes pointing at the wrong webserver. This is the only place I can find the wrong address, but I'm not sure what the file does so I'm afraid to change it. (1 Reply)
Discussion started by: Barb
1 Replies

3. AIX

Smit logs

Hi everyone, I'm trying to keep my smit logs in other directory diferent than the user's home. I know with -l and -s you can change this settings but I'm wondering if there is any environment value that I can set. It can be done using alias too ... Thanx. (3 Replies)
Discussion started by: mfons
3 Replies

4. AIX

SMIT on Linux

Hi All, I have a Linux system (RHEL 5). I want to install SMIT of AIX on it. Is it possible? if yes, how it can be done? Appreciate any help from you. Amol. (4 Replies)
Discussion started by: Amol21
4 Replies

5. Shell Programming and Scripting

How to realize SMIT on linux OS

Hi everybody, I want to know that how to realize the SMIT(The System Management Interface Tool ) of AIX on LINUX OS. would you tell some examples of SMIT or other useful information about it ? Thanks a lot (2 Replies)
Discussion started by: addictlinux
2 Replies

6. Shell Programming and Scripting

Using expect script with AIX's SMIT in cron

My searches turned up nothing relevant, so I apologize if this has already been looked at. I am trying to run an expect script from a Solaris machine, that ssh's into an AIX machine, and interacts with a SMIT created menu system that runs a few backups for me. The expect script runs fine when... (0 Replies)
Discussion started by: Mariognarly
0 Replies

7. AIX

SMIT Default Commands

I was trying to do a search for this but I guess I wasn't using the right terms. I just installed AIX 6.1 on a new P7 server. The OS seemed to be a success, however now, when I go to 'smitty' I can't use the default commands liek F3, F4. Instead I have to type esc+3 or esc+4. Anyone seen this... (2 Replies)
Discussion started by: bbbngowc
2 Replies

8. AIX

Doubts on SMIT

Hi All, Have a few doubts on SMIT. 1. Is SMIT available in seperate packages if it is not installed by default with the AIX ? 2. how to check the smit version.. is there anything of that kind ? 3. what is the effect of smit.cat file ? 4. What are all the files present in /etc/objrepos/... (4 Replies)
Discussion started by: BalajiUthira
4 Replies

9. AIX

adding users via smit

I apologize if this is a simple/stupid question. When I add users in smit as root, many(most) of the fields are automatically popluated with some basic default values. Some other admins here have access to create users via sudo, however when they create users (sudo smit users), the user gets... (3 Replies)
Discussion started by: mshilling
3 Replies

10. AIX

smit see comand performed ??

i in smit , press F6 , smit fs , Change / Show Characteristics of an Enhanced Journaled File System then F6 to see the comand , how can i see the command performed ?? x() { │ │ LIST= ... (5 Replies)
Discussion started by: prpkrk
5 Replies
fileevent(n)						       Tcl Built-In Commands						      fileevent(n)

__________________________________________________________________________________________________________________________________________________

NAME
fileevent - Execute a script when a channel becomes readable or writable SYNOPSIS
fileevent channelId readable ?script? fileevent channelId writable ?script? _________________________________________________________________ DESCRIPTION
This command is used to create file event handlers. A file event handler is a binding between a channel and a script, such that the script is evaluated whenever the channel becomes readable or writable. File event handlers are most commonly used to allow data to be received from another process on an event-driven basis, so that the receiver can continue to interact with the user while waiting for the data to arrive. If an application invokes gets or read on a blocking channel when there is no input data available, the process will block; until the input data arrives, it will not be able to service other events, so it will appear to the user to "freeze up". With fileevent, the process can tell when data is present and only invoke gets or read when they will not block. The channelId argument to fileevent refers to an open channel such as a Tcl standard channel (stdin, stdout, or stderr), the return value from an invocation of open or socket, or the result of a channel creation command provided by a Tcl extension. If the script argument is specified, then fileevent creates a new event handler: script will be evaluated whenever the channel becomes readable or writable (depending on the second argument to fileevent). In this case fileevent returns an empty string. The readable and writable event handlers for a file are independent, and may be created and deleted separately. However, there may be at most one readable and one writable handler for a file at a given time in a given interpreter. If fileevent is called when the specified handler already exists in the invoking interpreter, the new script replaces the old one. If the script argument is not specified, fileevent returns the current script for channelId, or an empty string if there is none. If the script argument is specified as an empty string then the event handler is deleted, so that no script will be invoked. A file event handler is also deleted automatically whenever its channel is closed or its interpreter is deleted. A channel is considered to be readable if there is unread data available on the underlying device. A channel is also considered to be readable if there is unread data in an input buffer, except in the special case where the most recent attempt to read from the channel was a gets call that could not find a complete line in the input buffer. This feature allows a file to be read a line at a time in nonblocking mode using events. A channel is also considered to be readable if an end of file or error condition is present on the underlying file or device. It is important for script to check for these conditions and handle them appropriately; for example, if there is no special check for end of file, an infinite loop may occur where script reads no data, returns, and is immediately invoked again. A channel is considered to be writable if at least one byte of data can be written to the underlying file or device without blocking, or if an error condition is present on the underlying file or device. Event-driven I/O works best for channels that have been placed into nonblocking mode with the fconfigure command. In blocking mode, a puts command may block if you give it more data than the underlying file or device can accept, and a gets or read command will block if you attempt to read more data than is ready; no events will be processed while the commands block. In nonblocking mode puts, read, and gets never block. See the documentation for the individual commands for information on how they handle blocking and nonblocking channels. The script for a file event is executed at global level (outside the context of any Tcl procedure) in the interpreter in which the fileevent command was invoked. If an error occurs while executing the script then the command registered with interp bgerror is used to report the error. In addition, the file event handler is deleted if it ever returns an error; this is done in order to prevent infinite loops due to buggy handlers. EXAMPLE
In this setup GetData will be called with the channel as an argument whenever $chan becomes readable. proc GetData {chan} { if {![eof $chan]} { puts [gets $chan] } } fileevent $chan readable [list GetData $chan] CREDITS
fileevent is based on the addinput command created by Mark Diekhans. SEE ALSO
fconfigure(n), gets(n), interp(n), puts(n), read(n), Tcl_StandardChannels(3) KEYWORDS
asynchronous I/O, blocking, channel, event handler, nonblocking, readable, script, writable. Tcl 7.5 fileevent(n)
All times are GMT -4. The time now is 09:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy