To change the frequency and tracks in the playlist I need to have root privileges which is fine via ssh but not with CGI scripts.
After doing some research online I found a tool called "expect" it can simulate keyboard strokes so basically you can "su or ssh" and it enters your password automatically if challenged.
My CGI root hacked script works perfectly using the web server mathopd but when I switched over to apache it failed completely.
From what I can tell apache is running my CGI scripts and calling "expect" just fine but for some reason it's not entering my root password with no obvious error.
I have tested my CGI script from the console as non-privileged user account "daemon" so I know it does work.
If "expect" cannot run using apache are they any other alternatives to issue root privileged commands from CGI??
Richard S.