linuxÖÐatqÏÂÁîÔõÑùʹÓÃ
atq ¿ÉÒÔÔÚ linux ÖÐÏÔʾÍýÏëÔËÐеÄ×÷ÒµÐÐÁС£ÏêϸʹÓ÷½·¨ÈçÏ£ºÉó²éËùÓÐÒÑÍýÏë×÷Òµ£ºatqÉó²éÌض¨Óû§ÒÑÍýÏë×÷Òµ£ºatq -u Óû§ÃûÉó²é×÷ÒµµÄÏÂÁîÐУºatq -c ×÷ÒµºÅÉó²é×÷ÒµµÄÐÐÁÐÐÅÏ¢£ºatq -q ×÷ÒµºÅÉó²é×÷ÒµµÄÏêϸÐÅÏ¢£ºatq -v ×÷ÒµºÅ
Linux ÖÐ atq ÏÂÁîµÄʹÓÃ
atq ÏÂÁîÓÃÓÚÏÔʾÍýÏëÔÚ¸ø׼ʱ¼äÔËÐеÄ×÷ÒµÐÐÁС£Äú¿ÉÒÔʹÓôËÏÂÁî¼ì²éϵͳÉÏÍýÏëµÄ×÷Òµ¡¢Æä״̬ºÍÔ¤¶¨Ö´ÐÐʱ¼äµÈÐÅÏ¢¡£
Óï·¨£º
atq [Ñ¡Ïî] [Óû§Áбí]
µÇ¼ºó¸´ÖÆ
Ñ¡Ï
-c£ºÏÔʾ×÷ÒµµÄÏÂÁîÐС£
-q£ºÏÔʾ×÷ÒµµÄÐÐÁÐÐÅÏ¢¡£
-V£ºÏÔʾÏêϸµÄÐÅÏ¢£¬°üÀ¨×÷ÒµµÄ ID¡¢×´Ì¬¡¢Ê±¼äºÍÏÂÁî¡£
ʹÓãº
ÒªÔÚûÓÐÑ¡ÏîµÄÇéÐÎÏÂÉó²éËùÓÐÍýÏëµÄ×÷Òµ£¬Ö»ÐèÊäÈëÒÔÏÂÏÂÁ
atq
µÇ¼ºó¸´ÖÆ
Õ⽫ÏÔʾһ¸öÁÐ±í£¬ÆäÖаüÀ¨ÒÔÏÂÐÅÏ¢£º
×÷ÒµºÅ
×÷ҵ״̬£¨ÀýÈ磬¡°ÒÑÅŶӡ±»ò¡°ÒÑÔËÐС±£©
×÷ÒµµÄÔËÐÐʱ¼ä£¨ÀýÈ磬¡°2023-03-08 13:30¡±£©
×÷ÒµÏÂÁÀýÈ磬¡°echo hello¡±£©
ÒªÉó²éÌض¨Óû§µÄÍýÏë×÷Òµ£¬ÇëʹÓà -u Ñ¡Ïîºó¸úÓû§Ãû£º
atq -u username
µÇ¼ºó¸´ÖÆ
ÒªÉó²é×÷ÒµµÄÏÂÁîÐУ¬ÇëʹÓà -c Ñ¡Ï
atq -c job_number
µÇ¼ºó¸´ÖÆ
ÒªÉó²é×÷ÒµµÄÐÐÁÐÐÅÏ¢£¬ÇëʹÓà -q Ñ¡Ï
atq -q job_number
µÇ¼ºó¸´ÖÆ
ÒªÉó²é×÷ÒµµÄÏêϸÐÅÏ¢£¬ÇëʹÓà -V Ñ¡Ï
atq -V job_number
µÇ¼ºó¸´ÖÆ
ÒÔÉϾÍÊÇlinuxÖÐatqÏÂÁîÔõÑùʹÓõÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡