Jump to content

duration for which a Houdini process is running


bhaveshpandey

Recommended Posts

hi there..been back after a while..just got things settled down here in Bournemouth :)

I'm working on a script which would allow me to document my production hours for any particular

project..

the problem is I could not figure out how to automate the process such that each instance

of Houdini I run, would know exactly how long its been running for..

I can extract the system's time when I run the script so I have the process's end time with me..

for getting the time when the instance of Houdini was run I guess I could again extract the system's time

and store it as a Global variable..?? (just a wild guess)

I also tried using the "os" module's "system" function to try and get the end time though..but it returns a 0 value..

(in the terminal it shows the date and time BUT also throws out 0...while in houdini's python shell it just shows zero

....I'm sure i'm missing out on some piece of information here??)

is there any better or efficient way for the same??

cheers :)

Link to comment
Share on other sites

hi there..been back after a while..just got things settled down here in Bournemouth :)

I'm working on a script which would allow me to document my production hours for any particular project.

...

How about a simple wrapper script:

#!/bin/sh
echo Start houdini `date` >> $HOME/houdini-run.log
houdini -foreground $*
echo End houdini `date` >> $HOME/houdini-run.log

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...