Verfasst: Sa 04 Sep 2004, 20:59
Hallo Riker!
Jetzt wo ich gerade warm geworden bin
Aber trotzdem vielen Dank
Jetzt wo ich gerade warm geworden bin

Aber trotzdem vielen Dank
yet another streaming tool
https://www.jackthegrabber.de/
Vielen Dankwarte bitte auf den nächsten Snapshot, da sind die neuen Befehle in Busybox drin.
Riker
Code: Alles auswählen
#!/bin/sh
ping -c 2 192.168.123.149
if [ $? -eq 1 ]; then
/var/etherwake 00:00:00:00:00:00 (hier hab ich die passende MAC-Adresse eingetragen)
wget -q -O /dev/null http://127.0.0.1/control/message?popup=Der%20Stream-PC%20wird%20eingeschaltet%20!%20!%20!
else
wget -q -O /dev/null http://127.0.0.1/control/message?popup=Der%20Stream-PC%20wird%20ausgeschaltet%20!%20!%20!
/bin/cat /var/plugins/rscript | /bin/nc -i 1 192.168.123.149 23 &
fi
exit 0
Code: Alles auswählen
/var # sh /var/plugins/wol
: Host name lookup failure
/var/plugins/wol: 6: Syntax error: "else" unexpected (expecting "then")
/var #
Code: Alles auswählen
#!/bin/sh
/var/etherwake 00:00:00:00:00:00
Code: Alles auswählen
#!/bin/sh
/var/etherwake 00:00:00:00:00:00
Ändere den Pfad mal nach :König Arthur hat geschrieben:@Riker
Danke für den Tipp. Werde das mal ändern. WOL müsste doch aber trotzdem funktionieren? wget wird ja erst nach etherwake ausgeführt. Kurios ist, dass das einfache Script:sich nur über Telnet ausführen lässt, aber nicht mit der Fernbedienung. Muss an wol.so / wol.cfg liegen?Code: Alles auswählen
#!/bin/sh /var/etherwake 00:00:00:00:00:00
Gruß
König Arthur
Code: Alles auswählen
#!/bin/sh
/bin/etherwake 00:00:00:00:00:00
Code: Alles auswählen
BusyBox v1.00-rc3 (2004.08.19-10:59+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
~ > /var/bin/cat /var/plugins/rscript | /var/bin/nc -i 1 192.168.0.3 23 &
~ > i: applet not found
nc
BusyBox v1.00-rc3 (2004.08.19-10:59+0000) multi-call binary
Usage: busybox [function] [arguments]...
or: [function] [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use, and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, ash, busybox, cat, chmod, clear, cp, date, dd, df, dmesg, dos2unix,
du, echo, env, expr, false, find, free, grep, halt, hostname,
ifconfig, ifdown, ifup, inetd, init, insmod, kill, killall, ln,
loadkmap, login, ls, lsmod, mkdir, modprobe, more, mount, mv,
nslookup, passwd, pidof, ping, poweroff, ps, rdate, reboot, renice,
rm, rmdir, rmmod, route, sh, sleep, sync, tar, telnet, telnetd,
test, time, touch, true, udhcpc, umount, uname, unix2dos, uptime,
vi, wget, xargs, yes
~ > busybox nc
nc: applet not found
Code: Alles auswählen
~ > /var/bin/busybox
BusyBox v1.00-pre10 (2004.07.22-14:59+0000) multi-call binary
Usage: busybox [function] [arguments]...
or: [function] [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use, and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, ash, basename, bunzip2, busybox, bzcat, cat, chmod, clear,
cp, crond, date, df, dmesg, dos2unix, du, echo, env, expr, false,
find, free, grep, gunzip, gzip, halt, hostname, ifconfig, ifdown,
ifup, inetd, init, insmod, ip, kill, killall, ln, loadkmap, login,
ls, lsmod, mkdir, more, mount, mv, nc, nslookup, passwd, pidof,
ping, poweroff, ps, rdate, reboot, rm, rmdir, rmmod, route, sed,
sh, sleep, sync, tail, tar, telnet, telnetd, test, touch, true,
udhcpc, umount, uname, unix2dos, uptime, vi, wget, xargs, yes,
zcat
~ > nc
BusyBox v1.00-pre10 (2004.07.22-14:59+0000) multi-call binary
Usage: nc [OPTIONS] [IP] [port]
~ > /var/bin/cat /var/plugins/rscript | /var/bin/nc -i 1 192.168.0.3 23 &
~ > Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\WINNT>shutdown
C:\WINNT>C:\WINNT\system32\shutdown -u -t 3
nc: read: Connection reset by peer
Bei mir liegt etherwake in /var. Das wird also nicht zum Erfolg führen.DrStoned hat geschrieben:Ändere den Pfad mal nach :Code: Alles auswählen
#!/bin/sh /bin/etherwake 00:00:00:00:00:00