-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
273 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.6 | ||
2.9.3 |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/tclsh | ||
# | ||
# (C) '2021 by Uwe Langhammer | ||
# script for reading sytem.Name() | ||
# | ||
# all parameters are optional! | ||
# | ||
# usage: systemname.tcl [<filename>] | ||
# | ||
load tclrega.so | ||
|
||
set filename [lindex $argv 0] | ||
|
||
set cmd "ret = system.Name();"; | ||
|
||
if {[catch {array set values [rega_script $cmd]} fid]} { | ||
puts stderr $fid | ||
} else { | ||
if {[info exists values(ret)]} { | ||
if {[string length $filename] > 1 } { | ||
set fo [open $filename "w"] | ||
puts -nonewline $fo $values(ret) | ||
close $fo | ||
} else { | ||
puts $values(ret) | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/tclsh | ||
# | ||
# (C) '2021 by Uwe Langhammer | ||
# script for reading sytem.Name() | ||
# | ||
# all parameters are optional! | ||
# | ||
# usage: systemname.tcl [<filename>] | ||
# | ||
load tclrega.so | ||
|
||
set filename [lindex $argv 0] | ||
|
||
set cmd "ret = system.Name();"; | ||
|
||
if {[catch {array set values [rega_script $cmd]} fid]} { | ||
puts stderr $fid | ||
} else { | ||
if {[info exists values(ret)]} { | ||
if {[string length $filename] > 1 } { | ||
set fo [open $filename "w"] | ||
puts -nonewline $fo $values(ret) | ||
close $fo | ||
} else { | ||
puts $values(ret) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/tclsh | ||
|
||
set checkURL "https://cuxd.de/cuxd-ccu2.php?$env(QUERY_STRING)" | ||
set downloadURL "http://cuxd.de/cuxd-ccu2.php?$env(QUERY_STRING)" | ||
|
||
catch { | ||
set input $env(QUERY_STRING) | ||
set pairs [split $input &] | ||
foreach pair $pairs { | ||
if {$pair == "cmd=download"} { | ||
set cmd "download" | ||
break | ||
} | ||
} | ||
} | ||
|
||
if { [info exists cmd ] && $cmd == "download"} { | ||
puts -nonewline "Content-Type: text/html; charset=utf-8\r\n\r\n" | ||
puts -nonewline "<html><head><meta http-equiv='refresh' content='0; url=$downloadURL' /></head><body></body></html>" | ||
} else { | ||
puts -nonewline "Content-Type: text/plain; charset=utf-8\r\n\r\n" | ||
catch { | ||
set newversion [ exec /usr/bin/wget -qO- --no-check-certificate $checkURL ] | ||
} | ||
if { [info exists newversion] } { | ||
puts $newversion | ||
} else { | ||
puts "n/a" | ||
} | ||
} | ||
|
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/tclsh | ||
# | ||
# (C) '2021 by Uwe Langhammer | ||
# script for reading sytem.Name() | ||
# | ||
# all parameters are optional! | ||
# | ||
# usage: systemname.tcl [<filename>] | ||
# | ||
load tclrega.so | ||
|
||
set filename [lindex $argv 0] | ||
|
||
set cmd "ret = system.Name();"; | ||
|
||
if {[catch {array set values [rega_script $cmd]} fid]} { | ||
puts stderr $fid | ||
} else { | ||
if {[info exists values(ret)]} { | ||
if {[string length $filename] > 1 } { | ||
set fo [open $filename "w"] | ||
puts -nonewline $fo $values(ret) | ||
close $fo | ||
} else { | ||
puts $values(ret) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/tclsh | ||
# | ||
# (C) '2021 by Uwe Langhammer | ||
# script for reading sytem.Name() | ||
# | ||
# all parameters are optional! | ||
# | ||
# usage: systemname.tcl [<filename>] | ||
# | ||
load tclrega.so | ||
|
||
set filename [lindex $argv 0] | ||
|
||
set cmd "ret = system.Name();"; | ||
|
||
if {[catch {array set values [rega_script $cmd]} fid]} { | ||
puts stderr $fid | ||
} else { | ||
if {[info exists values(ret)]} { | ||
if {[string length $filename] > 1 } { | ||
set fo [open $filename "w"] | ||
puts -nonewline $fo $values(ret) | ||
close $fo | ||
} else { | ||
puts $values(ret) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.