avatar
帮帮忙,用C作一个SHELL# Unix - 噫吁兮,危乎高哉
s*z
1
在UNIX下些一个C program,执行SHELL功能,也就是说能象SHELL一样
识别,执行COMMAND,具体如下:
First, implement the basic parts to print the prompt and
read the command line. In this first-cut version, just
print the
command that is to be executed instead of trying to
execute it. After you are able to determine the command
name,
complete the code to parse the command line and build
the argv array, again just printing the results to stdout.
Next, implement the command execute functionality.
This means you will i
avatar
c*t
2
For your own good, don't ask this kind of questions. If you
are really stuck at specific places, then we can help.

【在 s*z 的大作中提到】
: 在UNIX下些一个C program,执行SHELL功能,也就是说能象SHELL一样
: 识别,执行COMMAND,具体如下:
: First, implement the basic parts to print the prompt and
: read the command line. In this first-cut version, just
: print the
: command that is to be executed instead of trying to
: execute it. After you are able to determine the command
: name,
: complete the code to parse the command line and build
: the argv array, again just printing the results to stdout.

avatar
m*m
3
Exactly, pal. You can't expect people to write code for
your
class/work just like that. The requirement looks like a
reasonable amount of work. Which exact part you find hard
to
do?

【在 c*****t 的大作中提到】
: For your own good, don't ask this kind of questions. If you
: are really stuck at specific places, then we can help.

avatar
m*e
4
Or send me a check of $10 and I will send him the code.

【在 m*******m 的大作中提到】
: Exactly, pal. You can't expect people to write code for
: your
: class/work just like that. The requirement looks like a
: reasonable amount of work. Which exact part you find hard
: to
: do?

avatar
t*n
5
这么简单的东西还要人帮忙?

【在 s*z 的大作中提到】
: 在UNIX下些一个C program,执行SHELL功能,也就是说能象SHELL一样
: 识别,执行COMMAND,具体如下:
: First, implement the basic parts to print the prompt and
: read the command line. In this first-cut version, just
: print the
: command that is to be executed instead of trying to
: execute it. After you are able to determine the command
: name,
: complete the code to parse the command line and build
: the argv array, again just printing the results to stdout.

avatar
t*n
6
OK就给你一个吧, 你有种把这CODE交上去也行:
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。