Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
log in time and about the recyclebin
2. Relevant commands, code, scripts, algorithms:
im not sure what to type
3. The attempts at a solution (include all code and scripts):
none
4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
i dont have any school but my older brother told that i must do it
prob # 1
Quote:
MONITORING A USER'S LOGIN TIME
DUE DATE=APRIL 26, 2011
Create a script called USERLOGTIME that computes for the total
number of hours and minutes a particular user has been logged on to the
system. The script accepts one parameter, the user id.
Sample run:
[prompt]$ LOGTIME it2015678 <enter>
User it2015678 is CRUZ Tommy H
And has logged on to the system for:
8 hours
12 minutes
from the time this script was run.
prob 2
Quote:
RECYCLE BIN
DUE DATE=APRIL 27, 2011
Write a script called RECYCLEBIN that will follow the given
syntax:
RECYCLEBIN [-l -p ] filename/s
The specific action of each parameter in the script is
as follows:
filename/s moves the filename/s into a hidden directory called
".recyclebin" in your home directory
-l it will list the current contents of the recycle bin
or it will list the specified filename/s
-p it will purge(clean) all the contents of the recycle bin
or it will remove the specified filename/s
The script will act like a recycle bin in that instead of removing
files permanently, it moves them into a hidden folder called,".recyclebin"
in your home directory. If ".recyclebin" doesn't exist, it should be
automatically created.
Sample Runs:
a. [prompt]$ RECYCLEBIN hello.txt <enter>
Do you want the file/s to be moved to recycle bin y/n? y <enter>
[prompt]$
b. to verify if hello.txt was moved to " .recyclebin "
[prompt]$ RECYCLEBIN -l <enter>
OUTPUT: -rw-r--r-- 1 it2003456 stud .... hello.txt
[prompt]$
c. to purge
[prompt]$ RECYCLEBIN -p
Do you want all files in the recycle bin to be deleted y/n? y <enter>
[prompt]$
prob # 3
Quote:
FAMILIARIZATION WITH PROCESSES
DUE DATE=APRIL 28, 2011
Create a menu-driven script called PROCESSES that will perform each of
the given requirement upon choice of a letter by a user:
[A/a]. Display all user processes and their total
[B/b]. Display all your account's processes and its total
[C/c]. Display a process or set of processes given a user id
or the a user's real world name
[D/d]. Halts a particular process given its pid
[E/e]. Exit
thank you guys!