hey guys i need our help to be passed tomorrow.

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions hey guys i need our help to be passed tomorrow.
# 1  
Old 04-25-2011
hey guys i need our help to be passed tomorrow.

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!
# 2  
Old 04-25-2011
We're quite willing to help but we're not going to write it for you. What have you tried?
# 3  
Old 04-25-2011
Quote:
Originally Posted by skypigeon
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
I'm sorry Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Rebuilding computer tomorrow at work

I'm rebuilding my primary computer at work tomorrow. Currently, it has Windows 7. I would like to replace the main system with either Linux or Unix, although I would like to be able to run a fully operational Windows as a VM within that. Any recommendations on which Linux or Unix to go with? I'm... (6 Replies)
Discussion started by: Sean_
6 Replies

2. UNIX for Dummies Questions & Answers

hey guys i need our help for my assignment to be passed tomorrow.

good day to all. im just a new member. since im a newbie in UNIX, im having trouble learning. problem #1 problem # 2 thank you guys. take good care! (1 Reply)
Discussion started by: skypigeon
1 Replies

3. Cybersecurity

Hey guys

Hey guys, new geek here, sorry I didnt see a intro section. But I do have a question and hope to make my stay here perma. I am interested in IT security, ands I really want to learn, I was hoping for whatever questions I had you guys could lead me through the narrowest path with a broad selection... (1 Reply)
Discussion started by: abeja
1 Replies

4. Shell Programming and Scripting

grep tomorrow's date

Hi guys, I need to find tomorrows date in date fomat and should be in variable. as I need to grep this date in a flat file ie. if today's date is '09 JAN 2009' output should be '10 JAN 2009' unix/perl script will be fine. (21 Replies)
Discussion started by: ssachins
21 Replies

5. UNIX for Dummies Questions & Answers

Date change to tomorrow

I have this code in a script that says it is calculating current date: cur_date=`date -u +%m/%d/%Y` If the script is run today during the day, it returns 12/11/2008 If the script is run today during the night, it returns 12/12/2008 Why does it return tomorrow's date if it was run at... (2 Replies)
Discussion started by: mkoay
2 Replies

6. UNIX for Dummies Questions & Answers

Have an interview tomorrow just wondering one thing...

Hi, just a quick question here. I have an interview coming up tomorrow. The job is for a UNIX System Admin. I have a degree in Computer Networking and am familiar with Solaris, but was wondering what should I brush up on before going in to this interview (like any online reference)? Thank you... (2 Replies)
Discussion started by: NELS
2 Replies
Login or Register to Ask a Question