Hi, the command "chmod +x test.py" makes the file test.py executable, and if it succedes it gives you no output. To actually run the program, after running chmod, you should type "./test.py" (without quotes). An equivalent command is "python test.py" (without quotes).
Cygwin uses POSIX paths for filename, which are different from Microsoft Windows' paths. If the python executable is in C:\cygwin\bin\python.exe then the first line of your python program should be "#!/bin/python" (without quotes). If you're not sure where your python executable is installed you can find it by running "which python". You can ignore the chmod command and the first line of your python program by just running "python test.py". Regards. -- Giuseppe Cardone On Wed, Jan 6, 2010 at 4:35 AM, zheng manchun <[email protected]> wrote: > Hi, I'm new on TinyOS and is learning to use TOSSIM for simulating the > RadioCountToLeds following the TOSSIM tutorial on this page > http://docs.tinyos.net/index.php/TOSSIM#Introduction > > Things went well first, but I'm not stuck by the failures in running the > Python script test.py. > > I'm using Cygwin on Win XP. I typed "chmod +x test.py", but there was no > output (nor error msg) as indicated in the tutorial. > > I feel that the problem might lie in the first line of "text.py". > > --------------------------------- > #! /bin/python > from TOSSIM import * > import sys > ... > -------------------------------- > > As python is installed in the path "C:Cygwin/bin/", I modified the first > line the replace its original content (#! /usr/bin/python). > > Is there any thing I missed? > Hope to listen from you soon. > > -- > Thanks & Best Regards, > Mc > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
