10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
You have a log file as attached in sample input with various operations and time taken by each of them. Write a script to find the min and max time taken for each operation. Sample output is attached.
Sample Input is given as below:
operation1,83621
operation2,72321
operation3,13288... (1 Reply)
Discussion started by: Chandan_Bose
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am trying to run a script in cron every 5 min in SOLARIS 10
When I do5 * * * * /path to fileor*/5 * * * * /path to file
Doesn't work. Please let me know what should I put in the cron entry
Thanks (2 Replies)
Discussion started by: Rossdba
2 Replies
3. AIX
Hi running aix 6.1
oslevel
6100-07-03-1207
I need to confirm that this cron entry is set properly.
I need it set for every 5 min.
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /path/to/script.sh
it does not appear that it is running every 5 min but it did in the beginning. (4 Replies)
Discussion started by: vpundit
4 Replies
4. Shell Programming and Scripting
A log files has lines (1 line per each log for a majority; a few for 2 lines per each log)
May 31 14:00:11 rtprodapp1 local2:notice sudo: jdoe : TTY=pts/0 ; PWD=/home/jdoe ; USER=root ; COMMAND=/usr/bin/su -
May 31 14:03:19 rtprodapp1 local2:notice sudo: jdoe : TTY=pts/0 ; PWD=/home/jdoe ;... (4 Replies)
Discussion started by: Daniel Gate
4 Replies
5. Shell Programming and Scripting
Hi
i wrote script use it as watchdog ( i mean it check another program (pooya) whenever that was killed (closed or crashed) it run another script (pooya_start.sh) to start it,
this script work fine and do the job for me , i need help of an expert to tell me (exact command) how to change this... (8 Replies)
Discussion started by: pooyair
8 Replies
6. Shell Programming and Scripting
hi,
i have a file with folowing content:
STORAGE PERCENTAGE FLAG:
/storage_01 64% 0
/storage_02 17% 1
/storage_03 10% 0
/storage_04 50% 1
I need to get the value of STORAGE from those with FLAG=0 and which has the min PERCENTAGE
i am able to get the STORAGE corresponding to... (8 Replies)
Discussion started by: kichu
8 Replies
7. Shell Programming and Scripting
I want to check the counter value for every 1 min until the particular counter value is reached and it should exit.
Counter value: 15.( For Example)
counter = 1
The start time is noted using Localtime.
How can i do this in perl?
Regards
Archana (1 Reply)
Discussion started by: vanitham
1 Replies
8. Shell Programming and Scripting
I have a data file with records:
A123|Peter|20
A123|Jack |10
B222|Helen|15
B222|Jane |13
B222|Guy |30
I want for find the min for $3 group by $1.
i.e
A123|Jack|10
B222|Jane|13
Thanks. (4 Replies)
Discussion started by: Shivdatta
4 Replies
9. Shell Programming and Scripting
Hi ,
How can i set a cronjob which needs to run every 05,20,35,50 min .
I tried 05,20,35,50 * * * * /exec/eerrtis/tttttk/AOOK00000/bin/Packing.sh.. but its giving error while saving the crontab
file ....
What is the correct way ???
Thanks and Regards (4 Replies)
Discussion started by: scorpio
4 Replies
10. UNIX for Dummies Questions & Answers
I have a task where I need to code a shell script to extract a 10 min range (10 min from now until now) extract of a log file.
I taught I could simply use a command that would say something like Start=date - 10 min but I didn't find anything. Looks like the only solution would have to code a... (3 Replies)
Discussion started by: Browser_ice
3 Replies