Show Bid Request
job control for (ush)
Bid Request Id: 56915
|
|
|
Posted by: |
alzoub1 (47 ratings)
(Software buyer rating 9.95)
|
Non-action Ratio: |
Very Good - 5.77%
|
Posted: |
Apr 8, 2003 11:36:08 PM EDT
|
Bidding Closes: |
Apr 11, 2003 11:41:51 PM EDT
|
Viewed (by coders): |
56 times
|
Deadline: |
4/12/2003
TIME EXPIRED
|
|
|
|
Description:
for the system I use -- SSH secure Shell Client .
in order to do job control ush must keep track of its children.use a list object similar to the one used in program 2.4 to keep a program history.the nodes in the list should have the following structure:
typedef enum jstatus { FOREGROUND,BACKGROUND,STOPPED,DONE,TERMINATED} job_status_t;
typedef struct job_struct { char *cmdstring; pid_t pgid; int job; job_status_t jobstat; struct job_struct *next_job; }joblist_t;
static joblist_t *job_head = NULL; static joblist_t *job_tail = NULL;
place the list structure in a seprate file along with the following function to manibulate the job list:
1- the add_list function adds the specified job to alist.the prototype for add_list is int add_list(pid_t pgid, char *cmd, job_status_t status); the pgid is the process group ID,and cmd is the command string for the job.the status value can be either FOREGROUND or BACKGROUND .the add_list function returns the job number if successful or -1 on failure. 2- the delete_ list function removes the node corresponding to the specified job from a list.The prototype for delete_list is int delete_list(int job); the delete_list returns the job number if the node is successfully deleted or -1 on failure.be sure to free all space associated with the deleted node. 3-the show _jobs function outputs a list of jobs and each one's status .use a format similar to [job] status pgid cmd
4-the set_status function sets the status value of the node of the corresponding job to either FOREGROUND or BACKGROUND .its prototype is int set_status(int job,job_status_t status); the set_status function return 0 to success and -1 to failure.
see attachment--------------------------------
Deliverables: 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
3) Complete ownership and distribution copyrights to all work purchased.
Platform:
nt,98,melin,xp
Must be 100% finished and received by buyer on:
Apr 12, 2003 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Additional Files:
This bid request includes IMPORTANT additional attached files. Please download and read fully before bidding.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$20 (USD)
|
Apr 9, 2003 2:31:11 AM EDT
|
9.96
(Excellent)
|
|
|
Am I right in assuming this project to be limited to list manipulation functions and driver program and independent of ush?
Regards
|
|
|
|
|
|