作业 1 ---- Linux下用C语言实现 smartiotcmd

实现一个 smartiotcmd
1.实验目的 :
掌握进程、线程 的运用 ,深入了解代码流程,对指针及网络知识的巩固


2.第一天实验内容:
采用C语言编写程序,程序需要有拓展性,实现以下 2 个指令:

smartiotcmd --help : 显示 smartiotcmd 的各种信息及指令
smartiotcmd -v/--version : 显示版本信息
例如:root@OpenWrt:/# smartiotcmd -v
Smartiot Commander ver 1.0.0 (Dec 12 2019 16:17:49)

root@OpenWrt:/# smartiotcmd --help
smartiotcmd --help
Smartiot Commander ver 1.0.0 (Dec 12 2019 16:17:49)

Usage:
smartiotcmd
smartiotcmd -h|-l|-v
smartiotcmd [-p PID] [Arguments] COMMAND

Return codes:
Success: 0
Failure: 1

Commands:
-A, --answer Answer incoming voice call.


Options:
-h, --help Show this menu.
-v, --version Show version

Arguments:
-c, --call_ident Call identity for Dial/Answer/Supp/FAX commands. -c<call id>
<URC type>:
0, User define URC string. -s<string>

root@OpenWrt:/#

 

猜你喜欢

转载自www.cnblogs.com/vx-cg248805770/p/11991261.html
今日推荐