
在linux下面用python写一个,windows下面用python写一个,然后通过传输字符串来判断命令
然后linux将返回信息返回给windows,然后windows在显示
#!/bin/shi=0whiletruedoleti=i+1echo"u"$i":123456">>/root/user.txtecho"createinguseru$i.."useraddu$iif[$i-eq100]then/usr/sbin/chpasswd/root/user.txt/bin/rm-f/root/user.txtexitfidone#ifyouwanttodeletealloftheuser,youcan#i=0#whiletrue#do#leti=i+1#echo"deleteinguseru$i.."#userdel-ru$i#if[$i-eq100]#then#exit#fi#done供参考欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)