Thanks for all the quick replies!
Steve Harris <harris@hades.gsfc.nasa.gov>
Michael Maciolek <mikem@ne.cohesive.com>
"Matthew Stier" <Matthew.Stier@tddny.fujitsu.com>
Lusty Wench <lusty@lusty.org>
kevin@joltin.com (Kevin Sheehan {Consulting Poster Child})
The wide concensus is not to use csh. I firmly agree! However, I read that rsh
takes the shell of the remote machine which happens to be csh. I can't change
that. And some people disagreed with this statement. Anywho, I changed the
script to sh/ksh and still no go. What I had to do was pull this code out into a
stub script so the line looks like:
rsh server [path to stub]/stub.sh
where stub.sh looks like the sh/ksh version:
#!/bin/ksh
mkdir /home/blained
for f in `ls -A /etc/skel`
do
echo $f
cp /etc/skel/$f /home/blained/$f
done
Thanks,
Dave Blaine
------------- Begin Forwarded Message -------------
Date: Wed, 4 Aug 1999 15:08:15 -0400 (EDT)
From: "David W. Blaine" <blained@gdls.com>
To: sun-managers@sunmanagers.ececs.uc.edu
MIME-Version: 1.0
Content-MD5: GoO7rtB5yo/NTXiKbeHO2Q==
Hi Sun-gurus:
I have a problem with a portion of ksh script I am writing. Below is this code
portion. It rsh'es into the server just fine and processes the foreach once. It
copies the file .cshrc and then stops. There are at least 5 files in this
directory. The root shell on the server is csh thats why I wrote the rsh for
csh.
rsh server csh -c '\
mkdir /home/blained ;\
foreach f ( `ls -A /etc/skel` ) ;\
echo $f ;\
cp /etc/skel/$f /home/blained/$f ;\
end'
Any clues? Will summarize.
Thanks
------------------
David Blaine (blained@gdls.com)
Computer Systems Engineer
CSC for GDLS
Phone: 810-825-7650
------------- End Forwarded Message -------------
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:24 CDT