Sponsored Content
Top Forums UNIX for Dummies Questions & Answers List of 'if -f' options - AIX / Korn Shell Post 302594828 by methyl on Wednesday 1st of February 2012 10:07:35 AM
Old 02-01-2012
In "ksh" [ ] does not invoke /usr/bin/test.
The whole of the test function is built into "ksh" plus a few more extensions. Only the extensions are documented in detail in "man ksh". The vast majority of the ksh "test" function is documented in "man test".
This User Gave Thanks to methyl For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

korn shell + sftp + list files

Hello!!! I need a korn shell script in AIX that inside sftp environment, changes a remote directory, lists the files inside it, and stores in an array. I got it working before make a sftp, but after.. I can't.. The way it is, it lists the files in local path... so.. not what I want, but... (1 Reply)
Discussion started by: alienET
1 Replies

2. Shell Programming and Scripting

Mount options - AIX

I'm trying to write a script to verify that file systems mounted properly after a reboot or a script that any system admin can run to verify that all file systems are mounted properly. With HP-UX, I can run a mount -aQ and it will mount file systems not already mounted and report back any... (1 Reply)
Discussion started by: DRPearce
1 Replies

3. AIX

AIX 4.2 Korn shell and grep question

Ho do I find out the verion of the Kron shell on my client`s system ? There is no one to ask. They are not knowledged enough (hard to believe but yes). Also, on that AIX 4.2, I am trying to figure out how to do a grep using a search patter like below but does not seam to work. The '*' do... (11 Replies)
Discussion started by: Browser_ice
11 Replies

4. Shell Programming and Scripting

AIX Korn shell sed -s problem

In a Korn shell script I have, cat ../header | sed -e 's/flag1/$cnumb/g' > header.txt The header is short {{Company flag1}} But the result in header.txt is {{Company $cnumb}} The value of $cnumb is 120. I am trying to get the value of $cnumb into the header. I have tried /'$cnumb'/g,... (10 Replies)
Discussion started by: jcarrott
10 Replies

5. AIX

Any hope to get lp options like the following to work on AIX (6.1)?

Greetings Aix gurus, I have been appointed the task to port my SAS environment on HP-UX to AIX... I have been able to solve most issues but I am stuck with the following lines (these were easy to find, since in shell scripts but I found out that there are plenty more and encapsulated in SAS... (1 Reply)
Discussion started by: vbe
1 Replies

6. Shell Programming and Scripting

Parsing the list in korn shell

Hi I wanted to print/store just a specific element of the list . I have got the list as an output of grep command. here is code snap below : end_no=`egrep -ni '!return code: 0|return code other than 0' temp.log | cut -d':' -f1` this will return the line numbers in end_no. I just... (2 Replies)
Discussion started by: Shell@korn
2 Replies

7. Shell Programming and Scripting

Print pipe separated list as line by line in Korn Shell

Korn Shell in AIX 6.1 I want to print the below shown pipe (|) separated list line by line. line=es349889|nhb882309|ts00293|snh03524|bg578835|bg37900|rnh00297|py882201|sg175883 for i in line do echo "Hello $line " done I wanted to execute the above for loop. But i can't even set the... (3 Replies)
Discussion started by: polavan
3 Replies

8. Shell Programming and Scripting

Korn shell behaviour in AIX

Hi, Consider the code snippet below: fun() { while read x do echo $x done < somefile_that_does_not_exists } fun echo I am here Korn shell on HPUX prints the message "I am here", while the behaviour is different on AIX korn shell. We do not get the message on AIX. Any... (5 Replies)
Discussion started by: 116@434
5 Replies

9. Shell Programming and Scripting

Help when using Typeset in AIX Korn Shell

Guys, please help! I am currently using an AIX server however whenever I tried to use the typeset -F3, the variable is resulting with a "#". In the given example below, I declared x to be a decimal holding 3 decimal places = 1.455. However whenever I tried to echo the $x, the resulting value... (9 Replies)
Discussion started by: zzavilz
9 Replies

10. UNIX for Beginners Questions & Answers

Options for AIX server backups

Hello, I'm new to this forum. Forgive a question that may have been asked, but I would like to get advice on options for backups of an AIX server. The AIX server in question has about 2TB of storage, with 3 Oracle databases configured on it We're currently using tar backups to tape, LTO... (1 Reply)
Discussion started by: terrya
1 Replies
iwidgets::dialogshell(1)					  [incr Widgets]					  iwidgets::dialogshell(1)

__________________________________________________________________________________________________________________________________________________

NAME
iwidgets::dialogshell - Create and manipulate a dialog shell widget SYNOPSIS
iwidgets::dialogshell pathName ?options? INHERITANCE
itk::Toplevel <- iwidgets::Shell <- iwidgets::Dialogshell STANDARD OPTIONS
background cursor foreground See the "options" manual entry for details on the standard options. INHERITED OPTIONS
height master modality width See the "shell" manual entry for details on the above inherited options. title See the "Toplevel" manual entry for details on the above inherited options. WIDGET-SPECIFIC OPTIONS Name: buttonBoxPadX Class: Pad Command-Line Switch: -buttonboxpadx Specifies a non-negative padding distance to leave between the button group and the outer edge of the button box in the x direction. The value may be given in any of the forms accpetable to Tk_GetPixels. The default is 5 pixels. Name: buttonBoxPadY Class: Pad Command-Line Switch: -buttonboxpady Specifies a non-negative padding distance to leave between the button group and the outer edge of the button box in the y direction. The value may be given in any of the forms accpetable to Tk_GetPixels. The default is 5 pixels. Name: buttonBoxPos Class: Position Command-Line Switch: -buttonboxpos Attaches buttons to the given side of the dialog: n, s, e or w. The default is s. Name: padX Class: Pad Command-Line Switch: -padx Specifies a padding distance for the childsite in the X-direction in any of the forms acceptable to Tk_GetPixels. The default is 10. Name: padY Class: Pad Command-Line Switch: -pady Specifies a padding distance for the childsite in the Y-direction in any of the forms acceptable to Tk_GetPixels. The default is 10. Name: separator Class: Separator Command-Line Switch: -separator Specifies whether a line is drawn to separate the buttons from the dialog box contents in any of the forms acceptable to Tcl_Get- Boolean. The default is true. Name: thickness Class: Thickness Command-Line Switch: -thickness Specifies the thickness of the separator in any of the forms acceptable to Tk_GetPixels. The default is 3 pixels. __________________________________________________________________________________________________________________________________________________ DESCRIPTION
The iwidgets::dialogshell command creates a dialog shell which is a top level widget composed of a button box, separator, and child site area. The class also has methods to control button construction. METHODS
The iwidgets::dialogshell command create a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form: pathName option ?arg arg ...? Option and the args determine the exact behavior of the command. The following commands are possible for dialogshell widgets: INHERITED METHODS
activate center deactivate See the "shell" manual entry for details on the above inherited methods. ASSOCIATED METHODS
add buttonconfigure defaultdelete hide index insert invoke show See the "buttonbox" manual entry for details on the associated methods. WIDGET-SPECIFIC METHODS pathName cget option Returns the current value of the configuration option given by option. Option may have any of the values accepted by the iwid- gets::dialogshell command. pathName childsite Returns the pathname of the child site widget. pathName configure ?option? ?value option value ...? Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the iwidgets::dialogshell command. COMPONENTS
Name: dschildsite Class: frame The dschildsite component is the user child site for the dialog shell. See the "frame" widget manual entry for details on the dschildsite component item. Name: separator Class: frame The separator component devides the area between the user child site and the button box. See the "frame" widget manual entry for details on the separator component item. Name: bbox Class: ButtonBox The bbox component is the button box containing the buttons for the dialog shell. See the "ButtonBox" widget manual entry for details on the bbox component item. EXAMPLE
package require Iwidgets 4.0 iwidgets::dialogshell .ds -modality none .ds add OK -text "OK" .ds add Cancel -text "Cancel" .ds default OK .ds activate AUTHOR
Mark L. Ulferts KEYWORDS
dialogshell, dialog, shell, widget Tk iwidgets::dialogshell(1)
All times are GMT -4. The time now is 02:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy