Oh and Medina,

You may need to set up all your code and software in the root folder to 
allow for direct action in your boot.

Seth

P.S. sudo -i

On Tuesday, September 12, 2017 at 10:11:35 PM UTC-5, Mala Dies wrote:
>
> Hello,
>
> Run the CRON job with EDITOR=nano crontab -e and make sure you are root. I 
> forget what it must take to become root in our new systems. By default, the 
> Debian Stretch Distro does not place us in the root directory. *sudo -i *will 
> do it!
>
> Seth
>
> On Tuesday, September 12, 2017 at 12:35:33 PM UTC-5, Tomas Medina wrote:
>>
>> I am trying to write a program that reads the analog values of a sonar on 
>> the Beaglebone Black Wireless (Debian image 2017-07-01). The program runs 
>> fine if executed from the command line, but when I try to run it 
>> automatically at startup (using crontab), the program doesn't run at all 
>> (as indicated by a grep command). Here is the relevant code:
>>
>> from time import sleepimport Adafruit_BBIO.ADC as ADC
>> ADC.setup()
>> while True:
>>     sonar = ADC.read(pin)
>>     print sonar
>>     sleep(.5)
>>
>> Any help in this matter would be greatly appreciated.
>>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/af57df4d-43f7-4c8d-809f-2b1d49b640c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to