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)
If there exists a field in stdin, print it, otherwise, print hello.....
These print nothing:
cat /dev/null | awk '{if ( length > 0 ) print $1; else print "hello"}'
cat /dev/null | awk '{if ( $1 ) print $1; else print "hello"}'But the scripts work if I run them directly in a terminal:
... (8 Replies)
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)
Hi All,
Im trying to extract a file called 'DYEDistinctAppServer.topology' from a jar at specific location data/product/template-topologies, using remsh.
command is:
remsh $rHost -l $rUser -n 'export JAVA_HOME=/usr/java6_64_SR7;
export ORACLE_HOME=/oravl01/oracle/11.1.0.7;
export... (4 Replies)
greetings,
the following code isn't working as i expect it to. the first dbl brackets do but the second set gets ignored. ie: if i'm on t70c6n229 it echoes "Something" and i expect it not to. what am i missing?
if " ]] || " ]]; then
echo "Something"
fi
thanx! (9 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 OSF1
fingerd
fingerd(8) System Manager's Manual fingerd(8)NAME
fingerd - The user information server for networks
SYNOPSIS
fingerd [-s]
The fingerd program allows users to get information about remote systems or users when they execute; for example, finger user@host.
FLAGS
Turns on socket level debugging.
DESCRIPTION
The fingerd program is a protocol that provides an interface to the finger(1) command. By default, the fingerd program is disabled. To
enable it, edit the /etc/inetd.conf file, uncomment the line containing the finger service name, and restart Internet services by issuing
the /usr/sbin/rcinet restart command.
After it is enabled, the fingerd program is invoked by inetd(8), which listens for finger requests at port 79. When it receives control,
fingerd reads a single command line, terminated by a newline, and passes it to the finger command, which generates a report. The fingerd
program closes its port connection when output from finger is finished.
FILES
Specifies the command path User database who file Plans for requested user Projects for requested user whois command who command
RELATED INFORMATION
Commands: finger(1), inetd(8), syslogd(8), who(1)
Specifications: RFC742 delim off
fingerd(8)