This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
userspace:shutdown-wanted_with_timer [2013/04/29 20:03] trabs-ol created |
userspace:shutdown-wanted_with_timer [2013/04/29 20:21] trabs-ol |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | \\ | + | **Shutdown-wanted - Aber bitte nur Nachts!** |
- | **This is a master copy. Click on <edit this page> and copy the contents under " | + | |
- | ====== Programname Ver. 1.0 ====== | + | Falls man Software über Nacht per WakeOnLan verteilt, wird gerne das Paket shutdown-wanted von UIB als letztes Paket auf Setup gesetzt, damit die Rechner nach getaner Arbeit wieder herunterfahren. |
+ | Falls der WOL nun fehlschlägt (Rechner ist noch oben, da der User vergessen hat sich abzumelden, MagicPacket ist im LAN " | ||
- | Tested with opsi X.Y.Z\\ | + | Ich habe das Paket von UIB so umgebaut, dass der Reboot nur in der Zeit vor 06:00 Uhr morgens und nach 22:00 Uhr abends durchgeführt wird. In der Zeit von 06:00 bis 21:59 passiert nichts: |
- | requiredWinstVersion >= W.X.Y.Z\\ | + | |
- | Files can be downloaded at http://www. | + | |
- | By <click on the button signature> | ||
- | |||
- | Tree:\\ | ||
- | < | ||
- | insert the files and folders in the folder CLIENT_DATA, | ||
- | </ | ||
- | |||
- | ==== Steps ==== | ||
- | - here you enter special steps, if needed. Explain it well, so an opsi-beginner can do it. | ||
- | - step two | ||
- | - step three | ||
- | - ... | ||
- | |||
- | [[nix|Change the following headlines to the names of your scripts]] | ||
==== setup.ins ==== | ==== setup.ins ==== | ||
<code winst> | <code winst> | ||
- | click on "edit this page" | + | ; Copyright (c) uib gmbh (www.uib.de) |
+ | ; This sourcecode is owned by uib | ||
+ | ; and published under the Terms of the General Public License. | ||
+ | ; credits: http:// | ||
+ | ; enhanced by trans-ol ;) | ||
+ | |||
+ | [Initial] | ||
+ | DefStringList $list1$ | ||
+ | DefVar $zeit$ | ||
+ | |||
+ | set $list1$ = getOutStreamFromSection("DosInAnIcon_time") | ||
+ | set $zeit$ = takeString(0, | ||
+ | |||
+ | LogLevel=2 | ||
+ | ; Log Errors in Logfile but don't abort: | ||
+ | ExitOnError=false | ||
+ | ; Show syntax errors in the script: | ||
+ | ScriptErrorMessages=on | ||
+ | ; Dont trace step by step through the script: | ||
+ | TraceMode=off | ||
+ | ; let started programs run in front of the winst window | ||
+ | StayOnTop=false | ||
+ | |||
+ | [DosInAnIcon_time] | ||
+ | @echo off | ||
+ | set NOW=%TIME% | ||
+ | set VORNULL=NEIN | ||
+ | if "! !" | ||
+ | if %VORNULL%==0 set STUNDE=0%NOW: | ||
+ | if not %VORNULL%==0 set STUNDE=%NOW: | ||
+ | echo %STUNDE% | ||
+ | |||
+ | [Aktionen] | ||
+ | if $zeit$ > " | ||
+ | |||
+ | Message " | ||
+ | ShowBitmap /3 " | ||
+ | ExitWindows / | ||
+ | |||
+ | endif | ||
+ | |||
+ | if $zeit$ < " | ||
+ | |||
+ | Message " | ||
+ | ShowBitmap /3 " | ||
+ | ExitWindows / | ||
+ | |||
+ | endif | ||
</ | </ | ||
- | ==== uninstall.ins ==== | ||
- | <code winst> | ||
- | click on "edit this page" to see the complete source. | ||
- | </ | ||
- | |||
- | ==== delsub.ins ==== | ||
- | <code winst> | ||
- | click on "edit this page" to see the complete source. | ||
- | </ | ||
- | |||
- | ==== myvbs.vbs ==== | ||
- | <code vb> | ||
- | ;this is my vbs-script... | ||
- | echo click on "edit this page" to see the complete source. | ||
- | </ | ||