One way to get those commands working is to get the full version of bash compiled for Alpha Linux and install that on your disk image.

Assuming you want to terminate the simulation when the jobs are done, a cleaner way to do it is to use the 'm5' binary to signal the simulator when a job completes. For example, this would cause m5 to exit when radix terminates:

./radix/RADIX -n1048576 -p4 -w >& radix1.out ; m5 exit &

If you want to run two jobs in parallel and exit after they both finish, you'd have to hack the m5 binary a bit to have a counter and only notify the simulator after it's invoked twice. The source is in m5/util/m5 if you want to look into that.

Steve

Mishali Naik wrote:
Hi Lisa,
Thanks for the quick reply. I want to run multiple programs in a multithreaded setting and that is why I need to use those commands(fg and jobs), to ensure that each of the applications run till completion. Is there another way of doing this? If so then I wouldn't need to use these commands.
thanks for all your help.

*/Lisa Hsu <[EMAIL PROTECTED]>/* wrote:

    hi Mishali,

    the disk image we use has a utility suite called busybox on it,
    which is a very very small collection of utilities usually meant for
    embedded processors.  since m5 is a simulation, it would take up
    lots of space to have all normal linux utilities on the disk image,
    so we only have a limited amount of commands.  are those commands
    absolutely necessary for you?

    Lisa

    On 5/13/06, *Mishali Naik* <[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>> wrote:

        Hi All,
                   I have been trying to run multiple programs in Full
        System mode using the following .rcS script:

        cd /splash/splash2/codes/kernels
        ./radix/RADIX -n1048576 -p4 -w >& radix1.out &
        ./cholesky/CHOLESKY -p4 inputs/tk15.O >& chol1.out
        echo running benchmark with following command:
        cat chol1.out
        fg %1
        cat radix.out
        rm chol1.out
        rm radix.out

        Some of the commands like fg, more, jobs are not recognized. The
        message thrown back is command not found. Can anyone help me
        figure out why these commands are not being recognized??
I even tried to run these commands using m5term, by using 'bash' as the command in the .rcS script. The commands are not
        recognized.

        Thanks,
        Mishali

        ------------------------------------------------------------------------
        New Yahoo! Messenger with Voice. Call regular phones from your
        PC
        
<http://us.rd.yahoo.com/mail_us/taglines/postman5/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
        and save big.



------------------------------------------------------------------------
Yahoo! Mail goes everywhere you do. Get it on your phone <http://us.rd.yahoo.com/evt=31132/*http://mobile.yahoo.com/services?promote=mail>.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
m5sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m5sim-users

Reply via email to