21
edits
Changes
no edit summary
** dmake -E
* Read this as well [http://tools.openoffice.org/dmake/dmake_4.3.html dmake Man Page]
== A script to Log and Time the execution ==
To be able to capture the output of your execution and time it at the same time, save this script in a file. I called this file "logNtime". Give "logNtime" execution permission:
<pre>
#!/bin/bash
__cname__=$1
echo "$__cname__ exec time: ------------------" >> "$__cname__"time.log
echo start time: `date` >> "$__cname__"time.log
while [[ $# != 0 ]]; do
__cmd__="$__cmd__ $1"
shift
done
if [ -f "$__cname__"output.log ]; then
mv "$__cname__"output.log "$__cname__"output.`date +%y%m%d%H%M%S`.log
fi
echo $__cmd__ >> "$__cname__"time.log
$__cmd__ >> "$__cname__"output.log 2>> "$__cname__"output.log
echo end time: `date` >> "$__cname__"time.log
echo "-----------------------------------------" >> "$__cname__"time.log
</pre>
Then run your commands like:
<pre>
logNtime dmake -E
</pre>
This will create two log files: dmakeoutput.log and dmaketime.log which hold the output of dmake and it's execution
== Configuring The Source ==