Sunday, May 01, 2005 - Posts

[Script] run DynaMIT, check runtime

#!/bin/bash
echo '=== Running CorbaFreeDynaMIT from current directory ==='
STARTTime=`date`
echo 'Preparing to delete __* files in current directory and all sub directory'
ls __e*
if [ $? = 0 ]
then 
    echo -n "Really want to remove these files? (y/n):"
    read yesORno
    if [ $yesORno = y -o $yesORno = Y ]
        then
        echo 'find . -maxdepth 1 -name "__*" -exec rm -v {} \;'
        find . -maxdepth 1 -name "__e*" -exec rm -v {} \; && echo "Files removed."
    else
        echo "You did not choose 'y'. Continue without deleting"
    fi
fi
time ~/CorbaFreeDynaMIT/DynaMIT/DynaMIT dtaparam.dat
echo 'Script' $0 'started at: ' $STARTTime
echo -n 'Script' $0 'finished at: '&& date
echo 'Done.'

posted by wenyang with 0 Comments

nohup - run a command immune to hangups, with output to a non-tty

In bash, use

nohup ~/CorbaFreeDynaMIT/DynaMIT/DynaMIT dtaparam.dat 1>log_stdout 2>log_stderr &

 

posted by wenyang with 0 Comments

DynaMIT demo steps (By rama, 3/15)

1. Login as demo

2. Cd to 'irvine'.

3. Create another xterm for his directory:

xterm &

4. In one window, run:

./DynaMIT dtaparam.dat

[notice the ./]

5. Wait until DynaMIT starts reading socio-eco file. Then, in the other window, type:

./xdta -f xdta.ini

6. Click clock button first, in the control panel. Then choose density for color and thickness in the network view window. Expand/zoom the time horizon.

7. Make control panel window the active window (click on the top window bar).

8. Demo should run now on its own. Explain the basic DynaMIT functions and capabilities.

posted by wenyang with 0 Comments