Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Sat Nov 28, 2009 0:33 Post subject:
Eko wrote:
When you set this mypage_scripts nvram variable to point to your script(s), it will run the script when you call it. It will also show on routers GUI (under status..)
When I try to view it, I get the blank page and it executes the first script. _________________ The New Me
When you set this mypage_scripts nvram variable to point to your script(s), it will run the script when you call it. It will also show on routers GUI (under status..)
When I try to view it, I get the blank page and it executes the first script.
The blank page because you have not written any html code for the page? _________________ Kernel panic: Aiee, killing interrupt handler!
So.... I should make script1.sh pull up a HTML page? I am not familiar enough with Linux or scripts, how would I do that?
Code:
#!/bin/sh
directory/webpage.html
According to Eko's post in this thread, you can put a html page in the directory and have it displayed or you can echo outputs from your script.
No echo or no html page - you will only get a blank page, that is how I understand it. _________________ Kernel panic: Aiee, killing interrupt handler!
My asterisk status page showed up,but none of the functions worked. I did do a migration to the new Asus RT16N so that may be the problem as well.
Somehow that page in busybox httpd doesn't work either anymore. _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
That page still works in "optware's busybox httpd" but not when I run it in inetd mode as I recently found out. All this only on my new Asus RTN16.
The asterisk page shows up in "MyPage" but none of the functions work. Is it supposed to be able to run shell scripts? _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Yes but I bet you have to adjust the asterisk script, maybe even break it down into sections that can be executed individually. I have never seen the script so I can't really comment on how it works, so I could be way off. _________________ Eko Builds
Yes but I bet you have to adjust the asterisk script, maybe even break it down into sections that can be executed individually. I have never seen the script so I can't really comment on how it works, so I could be way off.
If I have to change the script it's easier for me to just continue to use optware's httpd. _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Mon Nov 30, 2009 23:57 Post subject:
DHC_DarkShadow wrote:
I'll give it a shot after work today.
My prob was i wasn't awaire that your not supposed to include #!/bin/sh when doing one of these. i got this from another site. Just a little modifing to make it my own and display the info I want.