Ok, here you go....
Once again
i needed the total time taken by my script called abc.ksh...like 20 mins or 30 mins or anything to be displayed on scrren as soon as abc.ksh is finished.
What i did as per your suggestion, i created a new script something called fff.ksh and inserted a line in it as below:
gave a proper permission..
Next what i did is, inside my original script at the end of abc.ksh, i wrote
/mypath/fff.ksh
below is the output when abc.ksh finished...It didnt gave me any time...
I gave you two solutions in the previous posts. What exactly is not working there?
Quote:
Next what i did is, inside my original script at the end of abc.ksh, i wrote
/mypath/fff.ksh
Why?
time(1) gives you elapsed time of command specified as its argument. so it gave you the time it took to execute fff.ksh. But you wanted the time it took to run abc.ksh. So do
instead of
, when you are invoking the script.
OK here you go....
My name of the script is abc.ksh which is approximately taking 8 to 9 mins to execute but iam not sure how exact it is ...so i needed help so posted here...
my abc.ksh script is as below...
The above code for the script name abc.ksh works absolutely fine and its taking 8 to 9 mins but dont know the exact time...
I execute it the the below way...
now @mirni-- as you said just put the time before the abc.ksh and i did that after the abc.ksh is completely executed.
And below is the out put on the screen after i wrote
-----time abc.ksh
its not displaying above like 8 or 9 mins as such..
---------- Post updated at 12:27 PM ---------- Previous update was at 12:24 PM ----------
What exactly should i do in my script (abc.ksh) so that it will show me in the end saying that the script took 8 or 9 or any mins or hours to execute..
ok thanks @Kumaran..i will surely try it....
one more thing where should i incorporate the above line ..
do u mean i should put it in the end of my script (abc.ksh)...so that as soon as abc.ksh is finished it will give me the total time it completed...
Through find command I identified the files older that 1 year. I need the overall size utilizes by these 1 year older files. Please share me the command to identify it .Thanks
Please post in an adequate technical forum! (3 Replies)
I'm using a .txt file filled with domain names for dig to use, the problem is that when i look at the results I get the query time for each individual query, I want to know how long it took in total for all queries to run, how can I achieve this? any help would be greatly appreciated, thank you.... (3 Replies)
Hi Friend,
Need your help.
I have a file which has information of start time and End time . I need to find how much time takes to complete the job . how can I do it in unix command .
Example of Log file :
Start Loading ---Thu Aug 2 17:14:09 EDT 2012
Load... (5 Replies)
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Hi All
Can anyone help me with the following du querry. I am trying to achieve a total size for all the zipped files in a directory. Using du -k *.gz gets me a file by file list but no handy total at the bottom.
Thanks
Ed (9 Replies)
Ok, another fun hiccup in my UNIX learning curve. I am trying to count the number of occurrences of an IP address across multiple files named example.hits. I can extract the number of occurrences from the files individually but when you use grep -c with multiple files you get the output similar to... (5 Replies)