monitoring the time in a process with shell
I have a shell script that is doing stuff, submitting other processes mainly.
Now I have a timer withing a while loop that monitors if the stuff has been running too long it will exit. The problem is that I am running the program overnight and I now had a problem due to change of month. I post few snippets from the script: Code:
#!/bin/sh I am not keen on putting the whole calender into my subroutine and I do not want to bind another language into this, I would rather stick to shell, but at the moment I am a bit short of ideas. Any ideas? I recall there was some command that counts seconds from start? use uptime or so instead of date? |
Hi,
perhaps I'm missing something here, but is there some reason you can't use Code:
date +%s Evo2. |
No, that was the one I missed myself ;) Thx
|
All times are GMT -5. The time now is 08:54 PM. |