³³½© Á¶Çձ⠶óÀ̺귯¸® | |
Áö±Ý ´Ù¿î·Îµå |
³³ ¼øÀ§ ¹× ¿ä¾à
±¤°í
³³ ű×
³³ ¼³¸í
½© ½ºÅ©¸³Æ®ÀÇ ¼Õ¸ñÀÌ ½ÇÁ¦ ¾ð¾î·Î µé¾î°¡±â¸¦ ¹Ù¶ø´Ï´Ù. Plumbum Shell Comminators¿¡ ÀλçÇϽʽÿÀ. PlumbumÀº PythonÀÇ ½© ½ºÅ©¸³Æ®¿Í °°Àº ÇÁ·Î±×·¥À»À§ÇÑ ÀÛÁö¸¸ ±â´ÉÀÌ Ç³ºÎÇÑ ¶óÀ̺귯¸®ÀÔ´Ï´Ù. µµ¼°üÀÇ ¸ðÅä´Â ½© ½ºÅ©¸³Æ®¿¡ ´Ù½Ã ÀÇÁö ÇÒ ÇÊ¿ä°¡ ¾øÀ¸¹Ç·Î ½© ±¸¹®À» ¸ð¹æÇÏ·Á°í ½ÃµµÇÕ´Ï´Ù (°¨°¢Àû ÀÎ °÷¿¡¼¸¸ Àǹ̰¡ÀÖ´Â °æ¿ì). ½©°ú °°Àº ±¸¹®°ú ¸ÚÁø ¹Ù·Î °¡±â°¡ÀÖ´Â ¶óÀ̺귯¸®´Â ·ÎÄà ¹× ¿ø°Ý ¸í·É ½ÇÇà, ·ÎÄà ¹× ¿ø°Ý °æ·Î ¹× ÀÛ¾÷ µð·ºÅ丮 ¹× ȯ°æ Á¶ÀÛ¿¡ ÁßÁ¡À» µÓ´Ï´Ù. ±×·¯³ª À̾߱â¿Í ÇÔ²² ÃæºÐÈ÷ ¸î °¡Áö Äڵ带 º¸ÀÚ! ±âº» »ç¿ë¹ý >>> Plumbum °¡Á® ¿À±â ·ÎÄà >>> Plumbum.local import ls, grep, cat, wc >>>>>> ls () '¶óÀ̼¾½º \ Nreadme.rst \ ndist \ ndocs \ nplumbum \ n '>>>>>> üÀÎ = ls | WC >>> Àμâ üÀÎ (C : \ Program Files \ git \ bin \ ls.exe | C : \ Program Files \ git \ bin \ wc.exe '-l') >>> üÀÎ ( ) '9 \ n'>>> notepad = ·ÎÄà >>> notepad () ''foregound and background >>> plumbum import fg, bg >>> ls >>> >>> ( ls | wc ¹× bg >>> f = _ >>> f.wait () >>> f.stdout'16 \ N'working µð·ºÅ丮 ¹× ȯ°æ >>> local.cwd ( "c : \ windows") : ... (ls | wc () ... '105 \ n'>>>>>>°¡ÀÖ´Â local.env (foo = "¹Ù") : ... local.env (foo = "spam") : ... local.python ( "- C", "°¡Á® ¿À±â OS, OS.Environ "). . Local.Python ( "- C", "OS OS °¡Á® ¿À±â, OS.Environ ... '½ºÆÔ \ r \ n'bar \ r \ n'remote ½ÇÇà (ssh ÀÌ»ó) >> > Plumbum Import Remote >>> R = Remote.Connect ( "linuxbox.foo.bar") >> > r () 'linux \ n'>>> r_ls = r >>> r_ls
³³ °ü·Ã ¼ÒÇÁÆ®¿þ¾î