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)
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)
Hi!
I have 2 servers. The firts has vsftpd server with this configuration:
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all... (2 Replies)
Hi
I have put alias ll='ls -la' in .profile file but it doesn't work.
On hand it works it looks like the .profile file is not beeing read.
How to check whitch file is loaded? ,profile? .bash_profile?
My system: SunOS mion 5.10 Generic
Shell: /bin/pfksh
Thanks (2 Replies)
Hi,
I need to use remsh inside a ksh script. The script would remsh to another machine (maybe different OS) and then execute commands.
A Simple Script:
#!/usr/bin/ksh
remsh sun7656 -l myuser "cd /user.3/MyFolder; ls -lart"
But this gives me the error:
permission denied
I also... (4 Replies)
Hello,,
Im verry new to scripting and have some problems with this script i made..
What it does:
It checks a directory for a new directory and then issues a couple of commands.
checks sfv - not doing right now
checks rar - it checks if theres a rar file and when there is it skips to... (1 Reply)
Hi!
I have a somehow big file (almost 3000 lines long and thirteen columns). Some lines have no value at all or, at least, are incomplete. The columns' values that have no data are marked with a "-" and the corresponding line (the line that owns that value) should be discarded and not used.
... (5 Replies)
I edited sudoers like this:vi /etc/sudoers
subex ALL =(root) NOPASSWD: /usr/ccs/bin/pstack
But the respective user still is prompted for password, and even when the right password is used, the command is still not launched.$sudo usr/ccs/bin/pstack 26557
We trust you have received the usual... (5 Replies)
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
LEARN ABOUT CENTOS
ttk::scale
ttk::scale(n) Tk Themed Widget ttk::scale(n)
__________________________________________________________________________________________________________________________________________________NAME
ttk::scale - Create and manipulate a scale widget
SYNOPSIS
ttk::scale pathName ?options...?
_________________________________________________________________DESCRIPTION
A ttk::scale widget is typically used to control the numeric value of a linked variable that varies uniformly over some range. A scale dis-
plays a slider that can be moved along over a trough, with the relative position of the slider over the trough indicating the value of the
variable.
STANDARD OPTIONS -class-cursor-style
-takefocus
See the ttk_widget manual entry for details on the standard options.
WIDGET-SPECIFIC OPTIONS
[-command command] Specifies the prefix of a Tcl command to invoke whenever the scale's value is changed via a widget command. The actual
command consists of this option followed by a space and a real number indicating the new value of the scale. [-from from] A real value
corresponding to the left or top end of the scale. [-length length] Specifies the desired long dimension of the scale in screen units
(i.e. any of the forms acceptable to Tk_GetPixels). For vertical scales this is the scale's height; for horizontal scales it is the scale's
width. [-orient orient] Specifies which orientation whether the widget should be laid out horizontally or vertically. Must be either hori-
zontal or vertical or an abbreviation of one of these. [-to to] Specifies a real value corresponding to the right or bottom end of the
scale. This value may be either less than or greater than the from option. [-value value] Specifies the current floating-point value of
the variable. [-variable variable] Specifies the name of a global variable to link to the scale. Whenever the value of the variable
changes, the scale will update to reflect this value. Whenever the scale is manipulated interactively, the variable will be modified to
reflect the scale's new value.
WIDGET COMMAND
pathName cget option
Returns the current value of the specified option; see ttk::widget(n).
pathName configure ?option? ?value option value ...?
Modify or query widget options; see ttk::widget(n).
pathName get ?x y?
Get the current value of the -value option, or the value corresponding to the coordinates x,y if they are specified. X and y are
pixel coordinates relative to the scale widget origin.
pathName identify x y
Returns the name of the element at position x, y. See ttk::widget(n).
pathName instate statespec ?script?
Test the widget state; see ttk::widget(n).
pathName set value
Set the value of the widget (i.e. the -value option) to value. The value will be clipped to the range given by the -from and -to
options. Note that setting the linked variable (i.e. the variable named in the -variable option) does not cause such clipping.
pathName state ?stateSpec?
Modify or query the widget state; see ttk::widget(n).
INTERNAL COMMANDS
pathName coords ?value?
Get the coordinates corresponding to value, or the coordinates corresponding to the current value of the -value option if value is
omitted.
SEE ALSO
ttk::widget(n), scale(n)
KEYWORDS
scale, slider, trough, widget
Tk 8.5 ttk::scale(n)