10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
Info:
System RedHat 7.5
I need to create a script that based on the creation time,
if the file is older then 5 minutes then execute some stuff, if not exit.
I thought to get the creation time and minutes like this.
CreationTime=$(stat -c %y /tmp/test.log | awk -F" " '{ print... (3 Replies)
Discussion started by: charli1
3 Replies
2. Shell Programming and Scripting
Hi All,
I want to send an email if the time difference from previous mail sent is more than or equal to 30 mins.
I have written below code and it's working fine.
In this script I am storing previous mail sent time in txt file.
Instead of storing in txt file how to store in a variable.... (8 Replies)
Discussion started by: nalu
8 Replies
3. Solaris
Hi,
Anyone can help me on how to collect the CPU and Memory usages every 5 minutes interval.
Thanks in advance.
Regards,
FSPalero (4 Replies)
Discussion started by: fspalero
4 Replies
4. Shell Programming and Scripting
Folks,
I need to send a .log file to my email for every one hour from a server that too only in a particular time period. Is awk mandate here? or can we do it in shell scripting only? Please help me in sorting this out.
Cheers,
Arun (3 Replies)
Discussion started by: ArunJanga
3 Replies
5. Shell Programming and Scripting
Hi,
Can someone help me in running a cronjob everyday between 7 and 8 pm with the time interval of 5 minutes in between to repeat that script. The script is so small and I need that to run daily between this time. Please if possible provide me the syntax for this logic.
Thanks. (4 Replies)
Discussion started by: cya
4 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I am new to this forum....
Can neone please help me how to copy files between two time intervals i.e. I need to copy files from 6.30 to 9.30 on 5th June 09.
Any help is appreciated. (2 Replies)
Discussion started by: Pratik4891
2 Replies
7. UNIX for Dummies Questions & Answers
I have a script I want to run in the background, and I have looked it up but I am not exactly sure how to do. First of all to run it in the background do you have to put something in the script or is it just a command when you go to run it. I found this solution to it but once again I am not to... (2 Replies)
Discussion started by: mauler123
2 Replies
8. Shell Programming and Scripting
Hi all,
I always getting great response from this forum, that why i am putting again....
I am working in a company which is giving ATM support.In one of my production server a lot of files are getting generated every day. I want to move these files to another name.
The file name which is... (4 Replies)
Discussion started by: Renjesh
4 Replies
9. Programming
Hi friends, I need to find average load on my server. The problem would have been quite simple had I required the load averaged over 1 min,5 min or 15 min which I can easily find reading /proc/loadavg (the same as shown by 'uptime') but my requirement compels me to find load averaged over 10 sec or... (2 Replies)
Discussion started by: Rakesh Ranjan
2 Replies
10. Solaris
What is the time_wait interval for Solaris 8/9??? and is it configurable???
For example sometimes a clients pc will freeze up dropping the connection, closing the port. The problem is on our side our system still thinks their logged in (until it realizes it dropped on the otherside and drops on... (1 Reply)
Discussion started by: eloquent99
1 Replies