bhaveshpandey Posted October 8, 2010 Share Posted October 8, 2010 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 Quote Link to comment Share on other sites More sharing options...
crunch Posted October 8, 2010 Share Posted October 8, 2010 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 Quote Link to comment Share on other sites More sharing options...
bhaveshpandey Posted October 8, 2010 Author Share Posted October 8, 2010 great!! that was pretty quick thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.