Linux / UNIX Tech Support Forum
This is a discussion on shell scripts required for students within the Shell scripting forums, part of the Development/Scripting category; hi guys... i need some shell scripts examples for my students lab cycle...need to prepare atleast 90...sumthin realted to system ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
hi guys...
i need some shell scripts examples for my students lab cycle...need to prepare atleast 90...sumthin realted to system administration would be ideal...nyone with such materials -pls send to roni.samuel@gmail.com.. Regards, roni |
| Sponsored Links | ||
|
|
|
|||
|
hey,
I need few shell scripts for beginners...These are for my students to try out..I wsant to give them these in addition to the regular lab cycle...I found a lot of scripts online but most of it is not what I want... Regards, Ron |
|
||||
|
You can give basic scripts like write script to add users and to make a backup and so on
__________________
Vivek Gite Linux Evangelist |
|
|||
|
actually i want a script which can monitor cpu usage,ram usage,swap usage,disk capacity etc....pls help me out.
|
|
|||
|
Quote:
hope you are not trying to monitor regularly(otherwise use monitoring tools) some time i used script for checking remote host through ssh.all basic commands ################################################## ########################### ### this is the script for getting remote host info using ssh keygen######### ################################################## ########################### #name of the script sajithsvr.sh #give permission as chmod 755 sajithsvr.sh #copy the keygen to specific folder #using ssh -i need not to give password for login as root #******script****** #bin/bash #logging to system through ssh #name of the server echo "host_name" alias squid1 ssh -i /home/sajith/tes/keypair root@remotehost "hostname" #swap memory echo "swap_usage" ssh -i /home/sajith/tes/keypair root@remotehost "free -m" #disk space echo "disk_usage" ssh -i /home/sajith/tes/keypair root@remotehost "df -h" #stastistics and memory #ssh -i /home/sajith/tes/keypair root@remotehost "vmstat" #system uptime and processor usage echo "processor_info" #ssh -i /home/sajith/tes/keypair root@remotehost "uptime" ssh -i /home/sajith/tes/keypair root@remotehost "mpstat" #logged users #ssh -i /home/sajith/tes/keypair root@remotehost "who" exit you can use with your commands say eg. vi test.sh and give execution permission chmod 755 test.sh #bin/bash echo "swap_usage" free -m echo "disk_usage" df -k echo "users" who |
|
||||
|
There are plenty of scripts here Bash shell scripts directory for Linux, FreeBSD, Solaris, UNIX
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SSH - Passing Unix login passwords through shell scripts | arulkumarr | Shell scripting | 4 | 27-08-2008 09:22 PM |
| running command a root in shell scripts | chiku | Shell scripting | 1 | 17-07-2006 06:39 PM |
| required help for running a shell script from browser | vaishalichitale | Shell scripting | 1 | 27-06-2006 04:53 PM |
| Shell,perl plsql programmer required (get paid) | amitoverseas40 | Solaris/OpenSolaris | 0 | 13-08-2005 09:15 PM |
| Shell,perl plsql programmer required (get paid) | amitoverseas40 | Shell scripting | 0 | 13-08-2005 09:12 PM |