The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: Some Info.
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 03-29-2008
ad4m88 ad4m88 is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 8
Thanks mate,

Hope im not asking for too much but, How would i write a script in a bash shell that can:
a) reboot the box
b) prefix a reboot with a suitable warning and pause
c) ping an IP address specified by the user and report on the response
d) kill a processes as specified by the user
e) add and delete a user

If you can give me the code for each one, i know how to put it into a menu (if, else if .... etc)

Thanks