首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

为什么exec-ing gtar会挂起我的Perl程序?

在这个问题中,提到了执行gtar命令会导致Perl程序挂起。gtar是一个用于创建、修改和提取tar文件的工具。

这种情况可能是由于gtar命令在执行过程中阻塞了Perl程序的执行。这可能是由于gtar命令需要与用户进行交互,例如输入密码或确认某些操作。

为了解决这个问题,可以尝试以下方法:

  1. 使用tar命令代替gtar命令。tar命令是一个更简单的命令行工具,可以执行类似的操作,但不需要与用户交互。
  2. 使用Perl的IPC::Open3模块来执行gtar命令,并将其输出传递给Perl程序。这样可以避免阻塞问题。
  3. 如果可能的话,使用其他方法来处理tar文件,例如使用Perl的Archive::Tar模块。

总之,这个问题是由于gtar命令的交互性导致的,可以通过更改工具或使用Perl的IPC模块来解决。

页面内容是否对你有帮助?
有帮助
没帮助

相关·内容

c# Response.ContentType类型汇总

application/activemessage application/andrew-inset application/applefile application/atomicmail application/dca-rft application/dec-dx application/mac-binhex40 hqx application/mac-compactpro cpt application/macwriteii application/msword doc application/news-message-id application/news-transmission application/octet-stream bin dms lha lzh exe class application/jsp jsp application/oda oda application/pdf pdf application/postscript ai eps ps application/powerpoint ppt application/remote-printing application/rtf rtf application/slate application/wita application/wordperfect5.1 application/x-bcpio bcpio application/x-cdlink vcd application/x-compress Z application/x-cpio cpio application/x-csh csh application/x-director dcr dir dxr application/x-dvi dvi application/x-gtar gtar application/x-gzip gz application/x-hdf hdf application/x-httpd-cgi cgi application/x-java-jnlp-file jnlp application/x-koan skp skd skt skm application/x-latex latex application/x-mif mif application/x-netcdf nc cdf application/x-sh sh application/x-shar shar application/x-stuffit sit application/x-sv4cpio sv4cpio application/x-sv4crc sv4crc application/x-tar tar application/x-tcl tcl application/x-tex tex application/x-texinfo texinfo texi application/x-troff t tr roff application/x-troff-man man application/x-troff-me me application/x-troff-ms ms application/x-ustar ustar application/x-wais-source src text/xml XML ent cat sty text/dtd dtd text/xsl xsl application/jsp jsp application/zip zip audio/basic au snd audio/mpeg mpga mp2 audio/x-aiff aif aiff aifc audio/x-pn-realaudio ram audio/x-pn-realaudio-plugin rpm audio/x-realaudio ra audio/x-wav wav chemical/x-pdb pdb xyz image/gif gif image/ief ief image/jpeg jpeg jpg jpe image/png png image/tiff tiff tif image/x-cmu-raster ras image/x-portable-anymap pnm image/x-portable-bitmap pbm image/x-portable-graymap pgm image/x-portable-pixmap ppm image/x-rgb rgb image/x-xbitmap xbm image/x-xpixmap xpm image/x-xwindowdump xwd message/external-body message/news message/partial message/rfc822 multipart/

01

《Perl语言入门》——读书笔记

Perl语言入门 /** * prism.js Github theme based on GitHub's theme. * @author Sam Clarke */ code[class*="language-"], pre[class*="language-"] { color: #333; background: none; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; word-wrap: normal; line-height: 1.4; -moz-tab-size: 8; -o-tab-size: 8; tab-size: 8; -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; } /* Code blocks */ pre[class*="language-"] { padding: .8em; overflow: auto; /* border: 1px solid #ddd; */ border-radius: 3px; /* background: #fff; */ background: #f5f5f5; } /* Inline code */ :not(pre) > code[class*="language-"] { padding: .1em; border-radius: .3em; white-space: normal; background: #f5f5f5; } .token.comment, .token.blockquote { color: #969896; } .token.cdata { color: #183691; } .token.doctype, .token.punctuation, .token.variable, .token.macro.property { color: #333; } .token.operator, .token.important, .token.keyword, .token.rule, .token.builtin { color: #a71d5d; } .token.string, .token.url, .token.regex, .token.attr-value { color: #183691; } .token.property, .token.number, .token.boolean, .token.entity, .token.atrule, .token.constant, .token.symbol, .token.command, .token.code { color: #0086b3; } .token.tag, .token.selector, .token.prolog { color: #63a35c; } .token.function, .token.namespace, .token.pseudo-element, .token.class, .token.class-name, .token.pseudo-class, .token.id, .token.url-reference .token.variable, .token.attr-name { color: #795da3; } .token.entity { cursor: help; } .token.title, .token.title .token.punctuation { font-weight: bold; color: #1d3e81; } .token.list { color: #ed6a43; } .token.inserted { background-color: #eaffea; color: #55a532; } .token.deleted { background-color: #ffecec; color: #bd2c00; } .token.bold { font-weight: bold; } .token.italic { font-style: italic; } /* JSON */ .lan

02

content-type 的所有可选项

‘ez’        => ‘application/andrew-inset’,     ‘hqx’        => ‘application/mac-binhex40’,     ‘cpt’        => ‘application/mac-compactpro’,     ‘doc’        => ‘application/msWord’,     ‘bin’        => ‘application/octet-stream’,     ‘dms’        => ‘application/octet-stream’,     ‘lha’        => ‘application/octet-stream’,     ‘lzh’        => ‘application/octet-stream’,     ‘exe’        => ‘application/octet-stream’,     ‘class’        => ‘application/octet-stream’,     ‘so’        => ‘application/octet-stream’,     ‘dll’        => ‘application/octet-stream’,     ‘oda’        => ‘application/oda’,     ‘pdf’        => ‘application/pdf’,     ‘ai’        => ‘application/postscript’,     ‘eps’        => ‘application/postscript’,     ‘ps’        => ‘application/postscript’,     ‘smi’        => ‘application/smil’,     ‘smil’        => ‘application/smil’,     ‘mif’        => ‘application/vnd.mif’,     ‘xls’        => ‘application/vnd.ms-Excel’,     ‘ppt’        => ‘application/vnd.ms-Powerpoint’,     ‘wbxml’        => ‘application/vnd.wap.wbxml’,     ‘wmlc’        => ‘application/vnd.wap.wmlc’,     ‘wmlsc’        => ‘application/vnd.wap.wmlscriptc’,     ‘bcpio’        => ‘application/x-bcpio’,     ‘vcd’        => ‘application/x-cdlink’,     ‘pgn’        => ‘application/x-chess-pgn’,     ‘cpio’        => ‘application/x-cpio’,     ‘csh’        => ‘application/x-csh’,     ‘dcr’        => ‘application/x-Director’,     ‘dir’        => ‘application/x-director’,     ‘dxr’        => ‘application/x-director’,     ‘dvi’        => ‘application/x-dvi’,     ‘spl’        => ‘application/x-futuresplash’,     ‘gtar’        => ‘application/x-gtar’,     ‘hdf’        => ‘application/x-hdf’,     ‘js’        => ‘application/x-javascript’,     ‘skp’        => ‘application/x-koan’,     ‘skd’        => ‘application/x-koan’,     ‘skt’        => ‘application/x-koan’,     ‘skm’        => ‘application/x-koan’,     ‘latex’        => ‘application/x-latex’,     ‘nc’        => ‘application/x-netcdf’,     ‘

02
领券