哪个exec函数最适合启动屏幕会话? [英] Which exec function would be best to start a screen session?

查看:85
本文介绍了哪个exec函数最适合启动屏幕会话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该使用哪个exec函数来启动一个屏幕会话:



execl,execlp,execle,execv,execvp,execvpe?



我只需知道exec是否成功。

解决方案

可以使用任何这些函数;这一切都取决于您想要传递给目标的信息,以及您希望如何制定参数。有关完整详细信息,请参阅手册页 [ ^ ]。


实际上这不是linux合作伙伴区域。但是你可以按照这个url了解linux环境中执行行为之间的区别



http://man7.org/linux/man-pages/man3/execl.3.html

Which exec function should I use to start a screen session:

execl, execlp, execle, execv, execvp, execvpe ?

I just need to know if the exec was successful.

解决方案

Any of these functions can be used; it all depends on what information you want to pass to the target, and how you want to formulate your parameters. For full details refer to the man pages[^].


actually this is not a linux partner area.but you can follow this url to understand the differences between executon behav in linux enviorment

http://man7.org/linux/man-pages/man3/execl.3.html


这篇关于哪个exec函数最适合启动屏幕会话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆