<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hallo Johannes<div><br><div><div>Am 14.04.2011 um 17:13 schrieb Johannes Winkelmann:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hallo Dieter,<br><br>On 04/14/2011 04:23 PM, Dieter Stokar wrote:<br><blockquote type="cite">Hallo Johannes<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Am 24.03.2011 um 17:07 schrieb Johannes Winkelmann:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">On 03/22/2011 05:49 PM, Dieter Stokar wrote:<br></blockquote></blockquote>[ds3]<br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">-&gt; &nbsp;wo ist dieses zu finden?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Quellcode:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> &nbsp;<a href="http://gitorious.digitalstrom.org/dss/dss-mainline/blobs/master/tools/ds3">http://gitorious.digitalstrom.org/dss/dss-mainline/blobs/master/tools/ds3</a><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Unter dieser Adresse kann ich die Datei nur anschauen, aber nicht herunter laden.<br></blockquote>Unter rechts ist ein Link "Raw blob data", dort kann die Datei runtergeladen werden:<br><a href="http://gitorious.digitalstrom.org/dss/dss-mainline/blobs/raw/master/tools/ds3">http://gitorious.digitalstrom.org/dss/dss-mainline/blobs/raw/master/tools/ds3</a><br><br>Alternativ ist es auch in den dSS-Source-Tarballs mit drin, z.B. in<br>http://developer.digitalstrom.org/download/dss/1.0/dss-1.0.0.tar.gz<br><br><blockquote type="cite"><blockquote type="cite">Auf dem dSS11 im Paket dss-ds3. Achtung: Es muss manuell (via opkg) das 'curl'-Paket installiert werden, das als Abhängigkeit fehlt<br></blockquote></blockquote></div></blockquote><div><br></div><div>Mit dem Befehl:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-style-span" style="white-space: pre;">opkg install curl&nbsp;</span></div><div><br></div><div><div><div><div><div>Auf dem dSS scheint es damit zu funktionieren:</div><div><br></div></div></div></div><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><div><div><div><div><div><font class="Apple-style-span" face="Courier"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; ">root@dSS11-sto:/home/dssadmin/tools# ./ds3 apartment getName</span></font></font></div></div></div></div></div><div><div><div><div><div><font class="Apple-style-span" face="Courier"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; ">"result":{"name":"dSS"}}</span></font></font></div></div></div></div></div></blockquote><div><div><div><div><br></div></div><div><br></div></div></div></div><blockquote type="cite"><div><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">-&gt; &nbsp;als welcher User muss (bzw. kann) ich es verwenden?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Da ds3 das JSON-API via Port 80 auf den dSS zugreift, braucht er keine speziellen Permissions, insofern sollte er als nicht-root-User ausgeführt werden, z.B. als dssadmin auf dem dSS11.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Kann ich das Script auch von einem lokalen PC (insb. Mac) aus verwenden?<br></blockquote>Ja, das Script benötigt nebst einer Shell (/bin/sh) nur curl, welches z.B. unter Mac OS X vorhanden ist. Ganz einfach die DSS_HOST Umgebungsvariable auf Hostname bzw. IP des dSS11 setzen:<br><br>Temporär:<br> &nbsp;$ DSS_HOST=192.168.2.72 ./ds3 apartment getName<br></div></blockquote><div><br></div><div><div>Da erhalte ich auf dem Mac:</div><div><br></div></div></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div><div style="font-size: 11px; "><font class="Apple-style-span" face="Courier">sto:~/bin$ DSS_HOST=192.168.111.59 ./ds3 apartment getName</font></div></div></div></div><div style="font-size: 11px; "><div><div><div><font class="Apple-style-span" face="Courier">usage: mktemp [-d] [-q] [-t prefix] [-u] template ...</font></div></div></div></div><div style="font-size: 11px; "><div><div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp; &nbsp; &nbsp; mktemp [-d] [-q] [-u] -t prefix&nbsp;</font></div></div></div></div><div style="font-size: 11px; "><div><div><div><font class="Apple-style-span" face="Courier">-n&nbsp;</font></div></div></div></div><div style="font-size: 11px; "><div><div><div><font class="Apple-style-span" face="Courier">&lt;?xml version="1.0" encoding="iso-8859-1"?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"&gt; &lt;html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>" xml:lang="en" lang="en"&gt; &lt;head&gt; &lt;title&gt;401 - Unauthorized&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;401 - Unauthorized&lt;/h1&gt; &lt;/body&gt; &lt;/html&gt;</font></div></div></div></div><div style="font-size: 11px; "><div><div><div><font class="Apple-style-span" face="Courier">-n&nbsp;</font></div></div></div></div><div style="font-size: 11px; "><div><div><div><font class="Apple-style-span" face="Courier">usage: rm [-f | -i] [-dPRrvW] file ...</font></div></div></div></div><div><div><div><div style="font-size: 11px; "><font class="Apple-style-span" face="Courier">&nbsp;&nbsp; &nbsp; &nbsp; unlink file</font></div></div></div></div></blockquote><div><div><div><div><br></div><div>Dieter</div><div><br></div></div></div></div><div><div><blockquote type="cite"><div><br>Permanent für die Shell-Session:<br> &nbsp;$ export DSS_HOST=192.168.2.72<br> &nbsp;$ ./ds3 apartment getName<br></div></blockquote><blockquote type="cite"><div><br><br>Gruss, Johannes<br>-- <br>Johannes Winkelmann<br>aizo ag, Switzerland - <a href="http://www.aizo.com">http://www.aizo.com</a><br><br>_______________________________________________<br>dss-developer mailing list<br><a href="mailto:dss-developer@forum.digitalstrom.org">dss-developer@forum.digitalstrom.org</a><br>http://forum.digitalstrom.org/cgi-bin/mailman/listinfo/dss-developer<br></div></blockquote></div><br></div></body></html>