I have a basic script and all I want it to do is output the result of 'wl ssid'. However since it is in a script and not in the telnet line it doesnt appear to do it. I have currently got something along the lines of
at the very basic level this should output your SSID in the terminal? although i'm not at home to test...
Code:
#!/bin/sh
wl ssid
chmod +x MY_SCRIPT
./MY_SCRIPT
it will be lost on reboot unless you enable jffs or set a startup script to echo the commands into the file.
you don't need the telnet command, as you should be connected to the router already... although i get the feeling you want to do more with the script than you are letting on please expand on your overall aims... _________________ Please search the forum and dd-wrt wiki before posting, you may be surprised
useful links: Optware the right way list of optware packages
broadcom announcements, peacock and recommended builds
Exactly right, but I can't execute it from the terminal, I needed it to go from the commands in startup to the snmpd.conf file so that it can create an OID for it, then I can access it via my Java program that Ive got running. I did manage to get this issue working, however, I have now another issue which is:
Is it possible to go from a Java program that uses SNMP (either the get/set command) to access an OID that will trigger a script?
For example, if I was running my program and I wanted to change the SSID of the network. Obviously I would like to continue using SNMP commands like I am currently able to do right now so by clicking a button I send information to an OID in the MIB stating this. Could a change in the OID make the program realise there is a change and act accordingly, executing another script to change the SSID to the user inputted value in the OID that was accessed.