[求助]谁来帮我看看这题目啊,好难啊,哪位大哥能帮一下小弟吗?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论