help on if loop within ssh

From: Kumaresh P Nataraj (pnkumaresh@in.ibm.com)
Date: Thu Sep 21 2006 - 20:28:54 EDT


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@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:40:50 EDT