1 Reply Latest reply: Oct 8, 2012 8:22 PM by Llessur999
Zolko Level 1 Level 1 (0 points)

Hi Guys!

I would bulid my dashcode project. But I don't know how to.

Read many website, tutorial, help, but not found my answer.

My questionis:

Build a new dashcode project with a safari custom template:


Next add a button from Library, set the event "onclick"


After you will see this:



"// insert code here"

What code, if I want to send this snmp command: snmpset -v1 -c private . i 1

If I write this command with AppleScript editor:


tell application "Finder"

    do shell script "snmpset -v1 -c private . i 1"

end tell


is working fine. But I want to make with dashcode.

Your question is: what is this?

This is one of my project. I have a small electronics with 8 input and 16 output. The 8 input will have a temperature sensors, and outputs will have a relays.

So I can controll whatever I want in my house.


Please give answer, if you know it.

Thanks: Zoltan

Mac OS X (10.6.8)
  • 1. Re: SNMP with dashcode
    Llessur999 Level 4 Level 4 (1,170 points)

    I assume you are creating a web app, coding with JavaScript. Is this snmpset command supposed to run from the client browser session? The browser security model will not let you run arbitrary shell commands, for obvious reasons. You might be able to find an installable component (maybe a Java applet?) that allows this.