View Single Post
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#24
Originally Posted by AlexV12 View Post
When i type:

sudo gainroot
smscon -start


i get:
/bin/sh: smscon: Permission denied

also, if i type smscon -start without root, i get -sh: smscon: not found


how come? what am i doing wrong?

i put both files in /usr/sbin via the code:

cp /home/user/MyDocs/Smscon/* /usr/sbin


after that i rebooted. but i have no idea how to activate it/ get into the options.

and do you need to change al the XXXXXXX in the file manually? or can you do this easily in the options once the program works?
smscon & smscon_daemon must be in /usr/bin and both files must have the right permissions (755), do this as root in /usr/bin:

Code:
Nokia-N900:/usr/bin# chmod 755 smscon 
Nokia-N900:/usr/bin# chmod 755 smscon_daemon
Smscon must be run as root:


Code:
Nokia-N900:/# smscon
== smscon - remote control utility ==
Options:
  -start   : start smscon
  -restart : clear & restart smscon
  -stop    : stop smscon
  -reset   : stop smscon & arase the log file
  -boot    : set start at device boot
  -unboot  : remove start at device boot
  -status  : get smscon_daemon status
  -log     : show the logfile
  -clear   : erase the log file
  -help    : this help menu
Nokia-N900:/#
To make it load at device boot:

Code:
Nokia-N900:/# smscon -boot
smscon_boot doesn't excist.
new smscon_boot created & active.
Nokia-N900:/#
And indeed you have to change all the XXXXX's before use.