Hello,
I have a TS7500 board and trying to control the digital IO lines from
Debian-linux on the sd-card.
When running the script below as user "root" it works fine. When doing the same
thing as user eclipse (or any other user) I get below message.
#!/bin/sh
. /initrd/ts7500.subr
#
echo "IO value of pin 5:"
getdiopin 5
#
Response when user root:
IO value of pin 5:
1
Response when user eclipse:
ts7500ctl: ts7500ctl.c: 771 main: Assertion 'dev/mem !=-1' failed
I've traced this back to the ts7500ctl.c file which is trying to open /dev/mem,
which is not allowed.
Is there another way how I can get this done. My goal is to run TS7500 digital
IO control from a CGI script in the Apache webserver. Apache does not allow you
to run it as root, so that is not a workaround.
Thanks for your help
Frank
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|