Home >Database >Mysql Tutorial >mysql-怎样让程序支持命令行操作

mysql-怎样让程序支持命令行操作

WBOY
WBOYOriginal
2016-06-06 09:33:241081browse

mysqlgccshell

怎样编写支持命令行的程序,比如像mysql,gcc之类的为什么可以通过命令行可以进行操作?我的想法是,程序运行后开启一个线程不断监听键盘的输入,但是这样程序必须启动后才能执行这些命令。但是像gcc之类的可以直接执行命令 啊。还是和系统的shell有关呢。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn