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)
Hello
I' m confused a bit.
I want to replace string "&" with "&" using this command.
sed 's/&/&/g'
and it doesn't work. Nothing happens.
On the other side this works:
sed 's/&/@/g'
or sed 's/&/^/g' !!!
Can somebody help please?
Thanks (3 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 wrote the following makefile, I have just one problem, when i type make clean I get the message make 'clean' is up to date and any obj file is removed from my folder, what's wrong?
Thank you
CC = cc
all: es.o elaboration.o
$(CC) -o es es.o elaboration.o
elaboration.o:... (0 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)
Hi,when I run my first shell script,I got something that doesn't work right.
I wrote this code in the script.
echo -e "Hello,World\a\n"But the screen print like this:
-e Hello,World
The "-e" wasn't supposed to be printed out.
Can anyone help me out?:wall:
Many thanks!:) (25 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)
On a SCO Unix system, the gcc command returns gcc: syntax error at line 1: `)' unexpected regardless of what else in on the command line.
Thus far I have added "INCLUDE=" and the path to stdio.h which only had an include statement to ast_stdio.h to my start up procedure.
I am trying to update... (2 Replies)
Discussion started by: wbport
2 Replies
LEARN ABOUT ULTRIX
whereis
whereis(1) General Commands Manual whereis(1)Name
whereis - locate source, binary, and or manual for program
Syntax
whereis [-sbm] [-u] [-SBM dir... -f] name...
Description
The command locates source/binary and manuals sections for specified files. The supplied names are first stripped of leading pathname com-
ponents and any (single) trailing extension of the form ``.ext'', for example,``.c''. Prefixes of ``s.'' resulting from use of source code
control are also dealt with. The command then attempts to locate the desired program in a list of standard places.
Options-S dir
Search for source files in specified directory.
-B dir
Search for binary files in given directory.
-M dir
Search for manual section files in given directory.
-b Searches only for binary files.
-f Terminates last directory list created from use of -S, -B or -M flags and signals the start of file names.
-m Searches only for manual section files.
-s Searches only for source files.
-u Searches for files that do not have one of binary, source or manual section files. A file is said to be unusual if it does not have one
entry of each requested type. Thus ``whereis -m -u *'' asks for those files in the current directory which have no documentation.
Examples
The following finds all the files in which are not documented in with source in
cd /usr/ucb
whereis -u -M /usr/man/man1 -S /usr/src/cmd -f *
Restrictions
Since the program uses to run faster, pathnames given with the -M -S and -B must be full. That is, they must begin with a ``/''.
Files
/usr/src/*
/usr/{doc,man}/*
/lib, /etc, /usr/{lib,bin,ucb,old,new,local}
whereis(1)