05-13-2018
The commands in quotes are troublesome.
Better have a tag that indicates where the (unquoted) command ends.
E.g. an empty line could do it.
Or perhaps you can give a filename?
And the given file stores the command(s)?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to go through the list of items and run it.
while running it, some of them will have either
>there is no response # and then end it... so that it can go to next item
OR
>there is response # but in order to break out of it, u need to do Control c.
How do you send control... (6 Replies)
Discussion started by: hankooknara
6 Replies
2. Shell Programming and Scripting
I have the following statement in script:
find ${LANDING_FILE_DIR}${BTIME_FILENAME_PATTERN2} -print | while read file; do
...
done
When there are no files located by the find comand it returns:
"find: bad status-- /home/rnitcher/test/....." to the command line
How do I get control in... (3 Replies)
Discussion started by: mavsman
3 Replies
3. Shell Programming and Scripting
Hi,
I have taken a piece of code from a book, which is working as per the specification. The code....
for entry in *
do
if
then
echo $entry
fi
done
The sub-directories present in the current directory will be displayed while executing.
... (3 Replies)
Discussion started by: saravanakumar
3 Replies
4. Shell Programming and Scripting
I have an empty .gz file in archival directory. And I am redirecting to a dat file. My while loop is not getting ended. I need the solution.
cnt=0
while read line
do
cnt=`expr $cnt + 1`
echo "$ARCH_DIR/$line.gz" >> $DATA_DIR/$FILE_LIST_FILE_FEB
FILE_NAMES=${FILE_NAMES}"... (2 Replies)
Discussion started by: vinodh1978
2 Replies
5. Shell Programming and Scripting
Hey guys,
I have this file generated by me... i want to create some HTML output from it.
The problem is that i am really confused about how do I go about reading the file.
The file is in the following format:
TID1 Name1 ATime=xx AResult=yyy AExpected=yyy BTime=xx BResult=yyy... (8 Replies)
Discussion started by: umar.shaikh
8 Replies
6. UNIX for Dummies Questions & Answers
Hi All
How can i control for loop with two different variables in csh shell
Regards
Nikhil (1 Reply)
Discussion started by: Nikhilindurkar
1 Replies
7. Shell Programming and Scripting
Hi
I would like to exit the loop below on <Enter> even if it sleeps. Is it possible?
while true
do
my_procedure;
sleep 60
done
Thanks (7 Replies)
Discussion started by: zam
7 Replies
8. Shell Programming and Scripting
Hello,
I would like to control and check the right parameters
$1 must have 4 alphabetics digits among eora qora pora fora
$2 must have 2 numerics digits 00 to 11
$3 must have 2 numerics digits 00 to 59
$4 must have 10 characters alpha numerics as 2013-02-26
For example :
In case 5) if i... (1 Reply)
Discussion started by: amazigh42
1 Replies
9. Shell Programming and Scripting
Hello,
I would like to control and check the right parameters
$1 must have 4 alphabetics digits among eora qora pora fora
$2 must have 2 numerics digits 00 to 11
$3 must have 2 numerics digits 00 to 59
$4 must have 10 characters alpha numerics as 2013-02-26
For example :
In case 5) if i... (15 Replies)
Discussion started by: amazigh42
15 Replies
10. Shell Programming and Scripting
Hello All,
I have an awk script which parses my log file and prints number grepping from a specific line/pattern, now i have to come with a shell script to continue reading the log untill the job is completed, which i would know while reading session log untill process encounters a final... (1 Reply)
Discussion started by: Ariean
1 Replies
usual(3itk) [incr Tk] usual(3itk)
NAME
usual - access default option-handling commands
for a mega-widget component
SYNOPSIS
usual ?tag? ?commands?
DESCRIPTION
The usual command is used outside of an [incr Tcl] class definition to define the usual set of option-handling commands for a component
widget. Option-handling commands are used when a component is registered with the Archetype base class via the "itk_component add" method.
They specify how the component's configuration options should be integrated into the composite option list for the mega-widget. Options
can be kept, renamed, or ignored, as described in the Archetype man page.
It is tedious to include the same declarations again and again whenever components are added. The usual command allows a standard code
fragment to be registered for each widget class, which is used by default to handle the options. All of the standard Tk widgets have usual
declarations defined in the [incr Tk] library. Similar usual declarations should be created whenever a new mega-widget class is conceived.
Only the most-generic options should be included in the usual declaration.
The tag name is usually the name of a widget class, which starts with a capital letter; however, any string registered here can be used
later with the usual command described on the Archetype man page.
If the commands argument is specified, it is associated with the tag string, and can be accessed later via itk_component add.
If only the tag argument is specified, this command looks for an existing tag name and returns the commands associated with it. If there
are no commands associated with tag, this command returns the null string.
If no arguments are specified, this command returns a list of all tag names previously registered.
EXAMPLE
Following is the usual declaration for the standard Tk button widget: itk::usual Button {
keep -background -cursor -foreground -font
keep -activebackground -activeforeground -disabledforeground
keep -highlightcolor -highlightthickness
rename -highlightbackground -background background Background } Only the options that would be common to all buttons in a single mega-
widget are kept or renamed. Options like "-text" that would be unique to a particular button are ignored.
KEYWORDS
itk, Archetype, component, mega-widget
itk 3.0 usual(3itk)