Poate e stupid, dar incearca f.write("1\n");
echo adauga si un new line, cam asta e singura diferenta pe care o vad eu...

/Mures

2016-03-16 11:19 GMT+02:00 Paul Lacatus (Personal) <[email protected]>:

>
>
> On 3/16/2016 11:16 AM, Paul Lacatus (Personal) wrote:
> >
> >
> > On 3/16/2016 11:12 AM, Claudiu Nicolaie CISMARU wrote:
> >>> *Intrebare *
> >>> *
> >>> Scrierea in fiser nu se face la fel din bash si din python ? De ce
> >>> nu se
> >>> genereaza pulsul respectiv ca in bash *?
> >> Sau datele iti raman in cache, nu sunt flushuite in fisier. Incearc
> >> as adaugi
> >> un f.flush()...
> >>
> >
> > tot degeaba
> >
> > >>> f= open ('/sys/bus/w1/devices/3a-0000002404ba/output','a')
> > >>> f.write ("1")
> > >>> f.flush()
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> > IOError: [Errno 14] Bad address
> > >>> f.close()
> >
> la bash imediat ce dau
>
> root@beaglebone:~# echo 1 >> /sys/bus/w1/devices/3a-0000002404ba/output
> -sh: echo: write error: Bad address
>
> actioneaza iesirea si se opreste calculatorul
>
> _______________________________________________
> RLUG mailing list
> [email protected]
> http://lists.lug.ro/mailman/listinfo/rlug
>



-- 
...and justice for all...
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui