虽然是真的;猫> bash中的fifo无法保留EOF

时间:2018-09-06 20:00:41

标签: linux bash login eof fifo

我想在服务器上随机生成Executing tasks: [:app:generateDebugSources, :libtimesquare:generateDebugSources] Configuration on demand is an incubating feature. WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) :app:preBuild UP-TO-DATE :libtimesquare:preBuild UP-TO-DATE :libtimesquare:preDebugBuild UP-TO-DATE :libtimesquare:checkDebugManifest UP-TO-DATE :libtimesquare:processDebugManifest UP-TO-DATE :app:preDebugBuild UP-TO-DATE :libtimesquare:compileDebugAidl UP-TO-DATE :app:compileDebugAidl UP-TO-DATE :libtimesquare:packageDebugRenderscript NO-SOURCE :app:compileDebugRenderscript UP-TO-DATE :app:checkDebugManifest UP-TO-DATE :app:generateDebugBuildConfig UP-TO-DATE :app:prepareLintJar UP-TO-DATE :app:mainApkListPersistenceDebug UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :app:generateDebugResources UP-TO-DATE :app:processDebugGoogleServices Parsing json file: /home/app/google-services.json :libtimesquare:compileDebugRenderscript UP-TO-DATE :libtimesquare:generateDebugResValues UP-TO-DATE :libtimesquare:generateDebugResources UP-TO-DATE :libtimesquare:packageDebugResources UP-TO-DATE :app:mergeDebugResources UP-TO-DATE :app:createDebugCompatibleScreenManifests UP-TO-DATE :app:processDebugManifest UP-TO-DATE :app:splitsDiscoveryTaskDebug UP-TO-DATE :libtimesquare:platformAttrExtractor UP-TO-DATE :libtimesquare:generateDebugRFile UP-TO-DATE :app:processDebugResources UP-TO-DATE :app:generateDebugSources UP-TO-DATE :libtimesquare:generateDebugBuildConfig UP-TO-DATE :libtimesquare:prepareLintJar UP-TO-DATE :libtimesquare:generateDebugSources UP-TO-DATE BUILD SUCCESSFUL in 1s 24 actionable tasks: 1 executed, 23 up-to-date 。为此,我制作了/etc/issue命名管道并开始执行以下脚本:

/etc/issue

不幸的是,它导致while true ; do mygenerator > /etc/issue done 进入无限循环,并且根本无法登录。将代码更改为以下“修复” 问题:

getty

但是,这也将登录尝试的速度限制为每秒1次。我不确定它在系统上是否有任何实际影响,但听起来像是在任何普通机器上都不会发生的严重异常。

为什么第一个变量会无限循环?如果我只尝试while true ; do mygenerator > /etc/issue sleep 1 done cat文件

,也会遇到无限循环

0 个答案:

没有答案