more useful options | |
PerlMonks |
GSM problemby roc (Sexton) |
on Apr 23, 2010 at 11:42 UTC ( [id://836503]=perlquestion: print w/replies, xml ) | Need Help?? |
roc has asked for the wisdom of the Perl Monks concerning the following question: hi every one...i have a cgi script to send sms as follow...
im using frdora 12 ....when i run the script as root(su -l root -c "/usr/bin/perl /path/to/script/script.cgi") then script giving the output as "connected" in command line.. but as user(su -l user -c "/usr/bin/perl /path/to/script/script.cgi") its giving error as "Not connected at /path/to/script/script.cgi line 14" ... the file is under 755 permission. i tried 'su -l user -c "strace -f /usr/bin/perl /path/to/script/script.cgi"'...it's giving 'open("/dev/ttyACM0", O_RDWR|O_NOCTTY|O_NONBLOCK|O_LARGEFILE) = -1 EACCES (Permission denied)....how to fix this problem...i mean how to make the script to work under user...please give me some suggestion to fix this.. ------------------------------------------------Update hey...thanks a lot...the problem solved...i gave 777 permission to /dev/ttyacm0......then its working fine...
Back to
Seekers of Perl Wisdom
|
|