Thread: Bash shell scripts
-
April 8th, 2007, 04:28 AM #1
Bash shell scripts
For educational purposes, i aquired and installed a linux distro ( ubuntu server ).
I thought about writing some scripts in VI to make others ssh'ing into it's lives easier.
They will be using the bash shell so it must work in Bash.
1st script idea.
I want it to display the users last login date/time as well as users last logout date/time. Then it should display under that the pcurrent server's name connected to, and the actual date when they connected.
I forget how you make scripts ignore commands ir unput variables, wasnt it like $username, etc.
2nd script idea.
Because of the nature of my servers usage. i want a script that will display all the executable files for them in order of last modification.
this one is like a pipe to | sort or something.
3rd script
Id like them to have a script that creates a tree looking output into terminal with whatever directory they are currently in at the top and sub directories underneath.
ex.
~burdan
my files
my pictures
i dont know how id go about with this one, still learning console commands. Any help with these would be aprpeciated. My level of knowledge with unix and Bash are moderate.Mild Computer Repairman By Day
Bloodthirsty Space Pirate By Night
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
why doesn't this work? Unix, bash shell
By MeshuggaH in forum Linux and UnixReplies: 1Last Post: May 6th, 2004, 11:41 AM -
Bash scripting help
By [Neo770] in forum Linux and UnixReplies: 5Last Post: April 21st, 2004, 11:12 PM -
Korn Shell Scripts not working
By NeoStarO1 in forum Applications and Operating SystemsReplies: 1Last Post: August 15th, 2002, 03:29 PM -
Shell scripts
By M_Six in forum Suggestion BoxReplies: 1Last Post: June 17th, 2002, 01:49 AM -
We're not the only ones who bash M$
By Kuasimodem in forum IMO CommunityReplies: 0Last Post: February 25th, 2002, 10:25 PM



LinkBack URL
About LinkBacks



Reply With Quote

Exactly. Too many sheep rely on law enforcement to proactively "protect" them. They are not personal bodyguards and not a personal LifeAlert nor ADT security. Their job is to enforce the laws and...
Do YOU think having a gun would...