Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Linux script help
post Nov 25 2007, 06:40 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 25-November 07
Member No.: 13,161

I'm working on a Linux script, and yes, it's a homework assignment. I'm writing a script which will automatically email the admin a list of login attempts, both good and bad, on a daily basis. I have written the script, but I don't have a Linux computer on which to test the script, and would just like to know if I've forgotten any details, and since my Linux experience is very limited, I'm sure I have. I'm not looking for a walkthrough here, just let me know if there's something more I need to look at to make this a workable script, please smile.gif


#This will need to be changed to whatever email address is required

0 4 * * * /var/spool/cron/myscript


last > "$tmp"

lastb >> "$tmp"

mail -s "daily login report" date "$tmp" | NOTIFY_ADDRESS

rm -f "$tmp"


That's it. Any help would be much appreciated. Thanks in advance for your assistance.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 19th July 2018 - 06:27 PM