[求助]谁来帮我看看这题目啊,好难啊,哪位大哥能帮一下小弟吗?

发布于 2022-07-26 03:24:18 字数 1464 浏览 18 评论 0

Unix shells provide operators like |, &&, ||, ; and exit status to combine commands. The operators can be used to control the commands when running under the same shell.

In this project you will develop a shell like the idea to multiple computers sharing a common file system. We wish to allow a user to specify the computer on which each (component) command runs. We will also allow use of parentheses to specify more sophisticated arrangements.

For example command:
[alpha] gcc prog.c && [beta] ./a.out

Would compile program on computer alpha.comp.mel.edu.au and then run the compiled program on computer beta.comp.mel.edu.au. Final output would appear on the original computer where the user is logged in. However, using the standard meaning of command combiner &&, the compiled program will run only if the compilation succeeded.

The assignment assumes that the user is appropriately logged into the participating computers. Each team can make assumptions to suit their design needs.

Marks are distributed as follows:
Nine marks for being able to run command components on the named computers.
Five marks for being able to receive exit status on primary computer.
Six marks for successful implementation of combiners &&, ||, and ;.
Nine marks for successful implementation of pipe (|) combiner communicating data across computers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文