Help required in crontab


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Help required in crontab
# 1  
Old 02-24-2009
Help required in crontab

Hi All,
I have written a script which checks for the quota of the system and sends the mail to the user if quota increases a particular threshold.
I want that this scripts get automaticaaly executed ,whic h I believe can be done with the help of crontab.
I am unaware of how to use this crontab.
So,can anyone out here help me with this.
My script goes as :
remsh $HOST -l $TLG_RATER_USR_ID -n "quota -v" > fill4
size=`awk 'NR==3 {print $2}' fill4`

echo $size

a=370000
if [ $size -ge $a ] ; then
echo "quota is more ,kindly delete the unwanted files "| mailx -s URGENT: Low disk space -r abc@sd.com
else
echo " quota is lessss,u can continue"
fi

Thanks.
# 2  
Old 02-24-2009
Use code tags when posting code, data or logs, thank you. Check this:
https://www.unix.com/answers-frequent...n-crontab.html
# 3  
Old 02-24-2009
man crontab??? Go to Examples section.
# 4  
Old 02-24-2009
Help required in crontab

Hey guys,

There is a problem.

I don't have the access for crontabs.

Could the automatic execution of the script can be done in any other way besides using crontab??

Thanks
# 5  
Old 02-24-2009
Since this looks like something that the admins might think useful, why don't you ask them to add it for you?
If that fails, you could always try a really, really fugly "pseudo"-crontab by having your script add itself to the at queue whenever it's done...
# 6  
Old 02-24-2009
If you do not have any kind of permission the last method is to run your script as a daemon process... but use it as a last measure..
# 7  
Old 02-24-2009
Help required in crontab

Hi,

The problem is we don't have inhouse admins.

Our admin sit at some other place and they are not at all co-operative.

They won't provide us the crontab access and I was developing this script to cut down the load of work that is beared by us daily.

So,I was looking for a work around this...

So,can anyone help me??
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

help required

Hi Everyone, I need a little help in manipulating a file. This is what I need. I need to move each line barring the top 3 lines, to the right by a 8 (or some specified number ) of places. Example BEGIN: Vertices Edges Archs 1443 4042 862 4821 254 1177I want to move the... (3 Replies)
Discussion started by: scigeek
3 Replies

2. UNIX for Dummies Questions & Answers

crontab scheduled details required

Hi, I have the below job scheduled in crontab. Can you please tell me at what interval this job is scheduled? Where is the name of the job defined here? I will definitely go through the UNIX documentation a little later, for the time being, please provide me few details on this. Thank you. ... (0 Replies)
Discussion started by: Dev_Dev
0 Replies

3. UNIX Desktop Questions & Answers

Crontab links required

Hi, I would like to master CRONTAB jobs in UNIX, can you please share more useful links and examples related to this, thank you. (1 Reply)
Discussion started by: Dev_Dev
1 Replies

4. UNIX for Dummies Questions & Answers

Crontab help required

How would i run /usr/local/sbin/copyfile.sh at 8 p.m today. What should i write in crontab -e ? (4 Replies)
Discussion started by: pinga123
4 Replies

5. Shell Programming and Scripting

Getting required fields from a test file in required fromat in unix

My data is something like shown below. date1 date2 aaa bbbb ccccc date3 date4 dddd eeeeeee ffffffffff ggggg hh I want the output like this date1date2 aaa eeeeee I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Discussion started by: rdhanek
7 Replies

6. Shell Programming and Scripting

Please Help required.

Hello guys I am new to awk programming. I need the below required script which can perform the following. I have a file containing below data. SNA NoCRD = 131 SNA OBarr = 3 SNC NoCRD = 76 SNC OBarr = 1 SND NoCRD = 155 SND OBarr = 5 SNE NoCRD = 100 SNE OBarr = 1 SNF NoCRD = 131 SNF... (2 Replies)
Discussion started by: jurial
2 Replies

7. Linux

Help Required

Hi, please suggest me the possible reasons for application to get hang ???? Thanks and Regards Anand P (1 Reply)
Discussion started by: Anand Prakash
1 Replies

8. UNIX for Dummies Questions & Answers

help required

Hi All, Please help me in the following query need a command to get all the files in the present directory except the next day file format :: abc_<DD>.log $ls -l abc_10.log abc_10.log abc_11.log Now i need the output in abc.list which should contains $more abc.list abc_10.log... (5 Replies)
Discussion started by: thaduka
5 Replies

9. UNIX for Dummies Questions & Answers

help required

I am new to unix, and have just taken over maintenance/admin of a unix system. I am trying to restore a full backup of one of the consoles on the system. The tape backup device appears to be recognized as it is an option to restore from. After choosing the tape backup and loading the tape, a... (3 Replies)
Discussion started by: ecoli69
3 Replies
Login or Register to Ask a Question