waitfor.out

来自「通讯程序源码」· OUT 代码 · 共 67 行

OUT
67
字号
waitfor(L)		 LOCAL COMMANDS		       waitfor(L)NAME     waitfor - wait for	a string to appear on the stdinSYNOPSIS     waitfor [ -n ] stringDESCRIPTION     Waitfor reads the standard	input and  returns  a  0  if  the     string argument is	found, returns a 1 if the strings did not     appear within the allotted	time, or returns a -1  on  error.     If	the string is found, waitfor returns immediately.     Waitfor is	designed to be	used  by  Pcomm	 inside	 a  shell     script  for  automating  keyboard input to	log a user onto	a     remote system.     The -n option is used to  specify	the  length  of	 time  in     seconds to	wait.  The default is 10 seconds.EXAMPLE	  # wait 5 seconds for the login prompt	  waitfor -5 login:	  # test the exit code of the waitfor command	  if [ $? -eq 0	]	  then	       # send my user ID	       echo egray	  fiSEE ALSO     pcomm(1), pcomm_cmd(1), matches(1), Pcomm Reference ManualDell Computer Corp.	  Last change:				1

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?