Results 1 to 2 of 2
Hey can anyone help me?
I'm in my final 4 weeks of a 2 year double Diploma in Network Engineering and Project management. We've just been hit with a suprise ...
- 05-29-2007 #1Just Joined!
- Join Date
- May 2007
- Posts
- 1
Need help on a script URGENTLY!
Hey can anyone help me?
I'm in my final 4 weeks of a 2 year double Diploma in Network Engineering and Project management. We've just been hit with a suprise LINUX assignment. I'm flat out on a huge CISCO WAN Assignment and time is running out.
I suck at LINUX and if I don't pass this Linux script assignment I will fail network engineering. can anyone take pity on a 40 year old mature age student and help me out? I 've got two weeks to get this done and I've still got my Microsoft exams, a huge disater recovery assignment, Huge WAN assignment, & Project management finals. AAAAAAAGGGHHHHHH!!
This is what I have to do.
I need to come up with a script that will allow selected users to automatically (no user interference) pull (copy) files from a location (/project) to their home accounts into a directories that were created by the script.
A file will list these selected users. The script will then reset the file name based on the user’s name + original file name.
The permissions have to be changed, so only the user can access the file. The files are to be copied in to a directory, determine by another file (loadfile.list) which lists the directories and file names so it can be easily change in the future.
While this is happening the script has to inform the user what is happening by a message to the screen. The script is to show the list of files which are about to be copied into the directory.
The script will also need to produce an audit log(file) which will be stored in the project’s directory.(\project) The log must have the user’s name plus the date as well as the filename, so the administer can view the audit trail later.
Note: that the directory where the files are to copied to is the first record on each line in the loadfile.list file. Eg. newdir:file1
NewDirectory:file1
NewDirectory:file2
NewDirectory:file3
Anotherdirectory:file4
Anotherdirectory:file5
Anotherdirectory:file6
yet anotherdirectory:file7
Every user has a login script in their account. (.bash_profile) Could we trigger this action by using a trigger file? If so, I’m supposed to name my own trigger file.
Have the user’s login script to look for the trigger file and then take the appropriate action based on the condition of an existing trigger file.
- 05-29-2007 #2
Ok...calm down, take a deep breath...it's going to be alright...=P
We're glad to help, but we're not going to do your assignment for you. Here's a place you can learn bash scripting:
http://tldp.org/LDP/abs/html/
Once you have more specific questions, please return and we'd be more than happy to answer them!Flies of a particular kind, i.e. time-flies, are fond of an arrow.
Registered Linux User #408794


Reply With Quote