Need Help on simple script as i dont know numch about UNIX scripting
Hello All,
My name is vasu and I am very new to Unix scripting, i know basic commands, but now i need to write the following script, i have tried but no luck
My requirment is i am getting one our from another command as following
In above aaa.. is user id, now i am trying to read this output from another command and need to send mail to every user with details like "Hi $user,\n The user $user Exceeded Advisory Quota Usage on `hostname`,Please cleanup \n \n USED\t\tQUOTA LIMIT\t\tUSER \n Used:1.8TB Advisory Quota:1.8TB aaa1"
I have tried like following:
Thanks in advance
Your Vasu
---------- Post updated at 12:27 PM ---------- Previous update was at 12:26 PM ----------
I am sorry for this, just now i got the output, please ignore this thread, Thanks for checking though!!
(Apologies for any typos.)
Well hands up those who have been in the following situation(s):-
Your partner, (in my case the missus), sees that you are messing
with your machine and says something like, "can you keep an eye
on the dinner, I am going out shopping", and you look up glazed
eyed... (3 Replies)
Hi
I have two scripts script1.sh and script2.sh(say this script is a long running).
I want to call script2.sh inside and script1.sh,but when i call script2.sh i dont want to wait for script2 to complete and want this to run in back ground and go on next commands in script 1.sh and finally at the... (2 Replies)
Hey all,
I would like to ask your help and sorry in advance for my ignorance since I am a complete beginner in this.
I need to create a UNIX script that will:
- scan a small number of folders and subfolders (see a similar file tree in the attachment)
-
- for each final folder (each of... (8 Replies)
hi guys,
i need a script that does a simple task on multiple aix servers.
if possible with both telnet and ssh.
the simple task i wanna do is connect to a server and run "ifconfig -a" and get the output. nextweek i need to do similar jobs on like 50 servers... :(
can anybody help me with making... (2 Replies)
Am trying to lean perl scripting in Unix OS to automate my tasks.
Please find the below perl script i have tried
#!/usr/bin/perl -w
print "Please Enter the VG name to be checked:";
$A = <>;
print "Please Enter the free size to be checked in GB:";
$B = <>;
$vgcheck = `vgdisplay... (7 Replies)
I'm creating a script that asks a user for a variable
ex
read filename;
read numberinput;
I also have a bunch of files named file.0 file.1 ... file.55
I'm trying to delete all files (if they exist) about file.$numberinput.
Can someone help me out on how to include the variable as part... (6 Replies)
when i run this script:
# Author: xtos
if
then
echo "Please enter ONLY one name to search, (example "$0" NAME)"
exit
fi
INPUT="grep $1 $HOME/work/phone_book"
if
then
echo "Listing not found, please try again."
else (2 Replies)
Hi
I am a beginner, so go easy lol.
first of all, what is the difference between unix and linux. after reading info on both of them i am still confused.
secondly, i am going to buy a book to help me with unix. if i buy a beginners guide to linux will that be better then buying a beginners... (5 Replies)
I don't know anything about UNIX. I have been developing on NT platform and now a batch file I was running in my java code must work on UNIX instead. How do I change the below .bat file into a shell script that can be run on UNIX? Thanks in advance for your help.
@ECHO OFF
D:... (1 Reply)