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)
Hello, the ls -d command to only list directories in a directory doesn't seem to work on Solaris and the man command says to use that combination: ls -d
Anyone have the same problem and find a resolve?
Thanks
BobK (9 Replies)
Hi. I've been playing around a bit. This isn't for any practical purpose-- it's really just a theoretical exercise. I wrote this little thing:
foreach num ( 6 5 4 )
awk -v "number=$num" 'BEGIN{for(x=0;x<$number;x++) printf "-"; printf "\n"}'
end
I would expect the following output:
... (3 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)
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)
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 DEBIAN
dancer::logger::abstract
Dancer::Logger::Abstract(3pm) User Contributed Perl Documentation Dancer::Logger::Abstract(3pm)NAME
Dancer::Logger::Abstract - Abstract logging engine for Dancer
SYNOPSIS
In your configuration file:
# default
logger_format: simple
# [1234] debug @0.12> [hit #123]message from your log in File.pm line 12
# custom
logger_format: %m %{%H:%M}t [%{accept_type}h]
# message from your log [11:59] [text/html]
DESCRIPTION
This is an abstract logging engine that provides loggers with basic functionality and some sanity checking.
CONFIGURATION
logger_format
This is a format string (or a preset name) to specify the log format.
The possible values are:
%h host emitting the request
%t date (formatted like %d/%b/%Y %H:%M:%S)
%P PID
%L log level
%D timer
%m message
%f file name that emit the message
%l line from the file
%i request ID
%{$fmt}t
timer formatted with a valid time format
%{header}h
header value
There is two preset possible:
simple
will format the message like: [%P] %L @%D> %m in %f l. %l
with_id
will format the message like: [%P] %L @%D> [hit #%i] %m in %f l. %l
METHODS
format_message
Provides a common message formatting.
core
Logs messages as core.
debug
Logs messages as debug.
warning
Logs messages as warning.
error
Logs messages as error.
info
Logs messages as info.
_log
A method to override. If your logger does not provide this, it will cause the application to die.
_should
Checks a certain level number against a certain level type (core, debug, info warning, error).
AUTHOR
Alexis Sukrieh
LICENSE AND COPYRIGHT
Copyright 2009-2010 Alexis Sukrieh.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as
published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
perl v5.14.2 2012-04-01 Dancer::Logger::Abstract(3pm)