09-25-2003
works!
Thanks! as usual
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
cat .servers | while read LINE; do
ssh jason@$LINE $1
done
exit 1
./command.ksh "ls -l ~jason"
Why does this ONLY iterate on the first server in the list? It's not doing the command on all the servers in the list, what am I missing?
Thanks!
JP (2 Replies)
Discussion started by: jpeery
2 Replies
2. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
3. Shell Programming and Scripting
i want to get the value for column 4rth when i =4. please guide what i am doing wrong. thanks
var=`cat file.csv`
for i in $var; do {
if ; then
var4=$var4+$i
fi
echo $i
}
done
I am geting this error message "0403-009 The specified number is not valid for this command." (8 Replies)
Discussion started by: sagii
8 Replies
4. UNIX for Dummies Questions & Answers
$ sudo -l
User test may run the following commands on this host:
(ALL) ALL
$ sudo ls /root
anaconda-ks.cfg Desktop install.log.syslog l.of page.html VTune
cpi ex intel mpd.hosts #te.c# ... (4 Replies)
Discussion started by: cqlouis
4 Replies
5. UNIX for Dummies Questions & Answers
Hello all,
Something strange going on with a shell script I'm writing. It's trying to write a list of files that it finds in a given directory to another file. But I also have a skip list so matching files that are in that skip list should be, well uhm, skipped :)
Here's the code of my... (2 Replies)
Discussion started by: StijnV
2 Replies
6. UNIX for Advanced & Expert Users
Hi Gurues,
I need to modify an existing script that uses find to search a folder, and then move its contents to a folder. What I need to do is run gzip on each file after it's moved.
So, I ran this little test:
Put a ls.tar file on my $HOME, mkdir tmp, and then:
virtuo@tnpmprd01: find .... (3 Replies)
Discussion started by: llagos
3 Replies
7. UNIX for Dummies Questions & Answers
find . -name "05_scripts" -type d -exec mv -f {}/'*.aep\ Logs' {}/.LogFiles \;
Returns this failure:
mv: rename ./019_0120_WS_WH_gate_insideTEST/05_scripts/*.aep\ Logs to ./019_0120_WS_WH_gate_insideTEST/05_scripts/.LogFiles/*.aep\ Logs: No such file or directory
I don't know why it's trying... (4 Replies)
Discussion started by: scribling
4 Replies
8. Shell Programming and Scripting
$ find /opt/data_* -maxdepth 3 -type d -name "main*" 2> /dev/null
/opt/data_025/maindblogs
/opt/data_026/maindblogs
/opt/data_027/maindblogs
/opt/data_028/maindblogs
$ find /opt/data_* -maxdepth 3 -type d -name "rvlogs*" 2> /dev/null
/opt/data_002/prod/rvlogs2_archive... (4 Replies)
Discussion started by: urello
4 Replies
9. Shell Programming and Scripting
Hi,
I am using korn shell.
until ]
do
echo "\$# = " $#
echo "$1"
shift
done
To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until ] then it does work.
Why numeric comparison is not working with -ne and works... (3 Replies)
Discussion started by: ab_2010
3 Replies
usual(n) [incr Tk] usual(n)
__________________________________________________________________________________________________________________________________________________
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(n)