Find Jobs
Hire Freelancers

C Program for UNIX

$20-25 USD

完了済み
投稿日: 20年以上前

$20-25 USD

完了時にお支払い
In this assignment you are required to develop a program that will act as a simple shell, similar to the bash shell in UNIX. Your shell must perform the following: Display a prompt, e.g., my_shell$ Accept a command entered by the user by using *fgets()* (**do not use** *gets()*) Execute the command by invoking the *fork()* and *execvp()* system call If the command cannot be executed, display the appropriate system error message (use *perror()* for this purpose) If logout is typed, the shell should exit Extend the shell to allow a process to redirect *stdout* to the *stdin* of a second process. That is, implement a pipe. Use the standard pipe operator "|". For example, as mentioned above, the command "sort filename" will alphabetically sort each line of a text file, and write the sorted output to stdout. However, "sort filename | head" will alphabetically sort each line of the text file, and write the sorted output into a pipe using *stdout*. Again extend the shell to support invoking a command in either foreground or background mode. The user should be able to run a command in the background by placing an extra "&" at the end of the command line, e.g., "sleep 1000 &" to manage whether a command is running in the foreground or background, you must use the *wait()* system call (**do not use** *waitpid()*). The shell should also support multiple background jobs up to a maximum of 10. The command “jobs?? should be implemented to display the currently executing background processes PID numbers and the command line from which it was invoked. All the above mentioned should be in one program. ## Deliverables 1) Complete and fully-functional working program in executable form as well as complete source code of all work done. 2) Complete ownership and distribution copyrights to all work purchased. ## Platform The program must run on Linux.
プロジェクト ID: 2970539

プロジェクトについて

4個の提案
リモートプロジェクト
アクティブ 21年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
See private message.
$6 USD 3日以内
5.0 (8 レビュー)
1.8
1.8
この仕事に4人のフリーランサーが、平均$13 USDで入札しています
ユーザーアバター
See private message.
$17 USD 3日以内
5.0 (22 レビュー)
3.7
3.7
ユーザーアバター
See private message.
$12.75 USD 3日以内
4.3 (5 レビュー)
3.8
3.8
ユーザーアバター
See private message.
$17 USD 3日以内
4.7 (4 レビュー)
2.4
2.4

クライアントについて

SINGAPOREのフラグ
Singapore
5.0
2
メンバー登録日:9月 3, 2003

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。