LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 08-05-2006, 02:32 AM   #1
ancys
LQ Newbie
 
Registered: Jul 2006
Posts: 28

Rep: Reputation: Disabled
Process Time


Hi all


I need to find the processing Date and time of the shell script(bash)

i.e The datetime when the shell script starts executing and end datetime it complets its execution

How to do?

help
 
Old 08-05-2006, 02:43 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Write a time-stamp to a logfile at the beginning and the end?


Cheers,
Tink
 
Old 08-07-2006, 03:20 AM   #3
ancys
LQ Newbie
 
Registered: Jul 2006
Posts: 28

Original Poster
Rep: Reputation: Disabled
how to write in log file?
 
Old 08-07-2006, 05:34 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
date > my_log
date >> my_log

Cheers,
Tink
 
Old 08-07-2006, 06:07 AM   #5
ancys
LQ Newbie
 
Registered: Jul 2006
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thanks for the solution
 
Old 08-09-2006, 03:37 AM   #6
worzel68
Member
 
Registered: May 2006
Location: Sydney
Distribution: FC5, FC3, AIX, System V,
Posts: 50

Rep: Reputation: 15
read up on the man page for the time command, it will tell you the elapsed time for the process.
 
Old 08-10-2006, 04:14 AM   #7
kshkid
Member
 
Registered: Dec 2005
Distribution: RHEL3, FC3
Posts: 383

Rep: Reputation: 30
we can get the processing time with 'time' and not the processing date
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Killing a process after x amount of time... virid Linux - Newbie 3 03-17-2006 07:13 AM
Incorrect process start time hulala Fedora 2 04-26-2005 10:36 PM
how get a process run time henryluo Linux - Newbie 9 06-10-2004 11:45 PM
Time of a process? AquamaN Programming 1 09-22-2003 03:46 AM
killing process at time limit hfawzy Linux - General 0 05-31-2003 04:46 AM


All times are GMT -5. The time now is 03:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration