help on if loop within ssh
- From: Kumaresh P Nataraj <pnkumaresh@xxxxxxxxxx>
- Date: Fri, 22 Sep 2006 11:28:54 +1100
Hi Guru's
Please help on the following simple script... if loop in there
doesn't seems to work ... am i missing something here...
for i in `cat sev_list`
do
echo "$i ---Started"
ssh root@$i "/usr/sbin/useradd -u 10536 -g uss -c \"test user\" -d
/export/home/oko01 -m -s /bin/ksh oko0
1;if [ -f /usr/bin/passwd.orig ]\
then\
/usr/bin/passwd.orig oko01\
else\
/usr/bin/passwd oko01\
fi"
echo "$i --Finished"
done
Best Regards
__________________________________________________________
Kumaresh. P. N
__________________________________________________________
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- Prev by Date: L20 with IBM LTO2
- Next by Date: help on if loop within ssh
- Previous by thread: L20 with IBM LTO2
- Next by thread: help on if loop within ssh
- Index(es):
Relevant Pages
|
|