[Tinyos-help] how to run TOSSIM.py?

Razvan Musaloiu-E. razvanm at cs.jhu.edu
Mon May 4 18:26:33 PDT 2009


Hi!

On Tue, 5 May 2009, JEBARI Mohamed wrote:

>
> Hello all,
>
> I compiled Blink application for TOSSIM. Every things worked well just 
> now, but when i tried to execute TOSSIM.py by typing ./TOSSIM.py the 
> following errors occured:
>
>
> ./TOSSIM.py: line 4: import: command not found
> ./TOSSIM.py: line 5: syntax error near unexpected token '<'
> ./TOSSIM.py: line 5: 'def _swig_setattr(self,class_type,name,value):'
>
>
> can any body know from where this errors come?
>
>

You cannot use the TOSSIM.py directly, you need to write a simulation 
script. You can find an example called MonoBlink in here:
 	http://hinrg.cs.jhu.edu/~razvanm/ipsn09/ipsn09.tar.gz

All the best!
Razvan ME


More information about the Tinyos-help mailing list