Announcement
Collapse
No announcement yet.
Script to list events that have script actions - Discussion Thread
Collapse
X
-
Jon00 - Great solution. Thanks for the tip. That's a simple way to cull out old unused scripts.
-
Originally posted by noopara View PostI'm looking for a script that finds scripts that call other scripts...Actually what I am looking for is a script that identifies scripts that are not used at all. As far as I can tell, your tool finds only scripts that are called in an event.
Leave a comment:
-
Originally posted by noopara View PostI'm looking for a script that finds scripts that call other scripts...Actually what I am looking for is a script that identifies scripts that are not used at all. As far as I can tell, your tool finds only scripts that are called in an event.
Leave a comment:
-
I'm looking for a script that finds scripts that call other scripts...Actually what I am looking for is a script that identifies scripts that are not used at all. As far as I can tell, your tool finds only scripts that are called in an event.
Leave a comment:
-
Found a couple of things.
First, the database filename was built with backslash separators, which Linux doesn't accept. Easy fix.
Next, the crash can eliminated by commenting out the line
Code:Blob = comm.ExecuteScalar()
This is a bit crazy, because that line wasn't ever executed until the path issue was fixed! Seems the crash occurs at interpret/compile time (not run time) of either of those functions. (they are compiled right before being called, so the debugging outputs occur up til that point, then crash).
I tried some variations, but no success so far. Issue seems conversion to the byte array data type. It does run all the way through (reports the correct number of items found), but the results are incomplete of course.
It seems that mono is a bit of a mess. The initial message announcing the crash is
* Assertion at method-to-ir.c:3041, condition `m_class_get_rank (klass) == 0' not met
I get the same crash running this script
Code:Sub Main(parm as object) Dim Blob As Byte() hs.WriteLog("test", "I exist!") Blob = System.Text.Encoding.Unicode.GetBytes(parm) hs.WriteLog("test", "I survived the apocalypse!") End Sub
Leave a comment:
-
Guest repliedSorry to be off topic.
zwolfpack
I noticed a diference between the original vbnc patch :
Code:if [[ $x = '/tmp'* ]]
Code:if [[ $x =~ ^/tmp/ && -e $x ]]
thank you
Leave a comment:
-
Gave this a try again tonight with same results. First off, attached are minor changes to scriptevents.aspx
1) changed all instances of "VbCrLf" with "Environment.NewLine". This was awhile back; presumably the former didn't work on Linux.
2) At line 78, changed so SQLite.dll can be found.
/usr/bin/vbnc is patched as follows:
Code:#!/bin/bash # mono vbnc invocation script patched for HS3 aspx compatability for x do if [[ $x =~ ^/tmp/ && -e $x ]] then sed -i '1{/#External/d}' $x fi done exec /usr/bin/mono --debug $MONO_OPTIONS /usr/lib/mono/4.5/vbnc.exe "$@"
=======
Once the ASPX page loads, selected first dropdown entry... HS3 crashes
For possible insight to the problem, started HS3 in the foreground (using ./go).
Crash dump starts with
Code:* Assertion at method-to-ir.c:3041, condition `m_class_get_rank (klass) == 0' not met ================================================================= Native Crash Reporting ================================================================= Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. =================================================================
Leave a comment:
-
Originally posted by larhedse View PostSparkman - is there anyway I could use the vb-script part only and well get a list printed in the Log for example?
Leave a comment:
-
Sparkman - is there anyway I could use the vb-script part only and well get a list printed in the Log for example?
Leave a comment:
-
Guest repliedOriginally posted by larhedse View PostNa this has nothing to do with your script - this is clearly a Mono problem. I'll see if MattL0 has something cool to say about it :-)
Leave a comment:
-
Originally posted by zwolfpack View PostThis script is very handy and runs great on Windows. A few months back I attempted to get it running on Linux (HS3-std on Raspberry Pi). I got past the ASPX issues, got the paths straightened out to the point to where it was able to find and try to load the SQLite library. HS3 then stopped completely (crashed). I threw in the towel at that point. Once of several "little" things that convinced me the Linux product isn't ready for prime-time. Pity.
Leave a comment:
-
This script is very handy and runs great on Windows. A few months back I attempted to get it running on Linux (HS3-std on Raspberry Pi). I got past the ASPX issues, got the paths straightened out to the point to where it was able to find and try to load the SQLite library. HS3 then stopped completely (crashed). I threw in the towel at that point. Once of several "little" things that convinced me the Linux product isn't ready for prime-time. Pity.
- Likes 1
Leave a comment:
-
Na this has nothing to do with your script - this is clearly a Mono problem. I'll see if MattL0 has something cool to say about it :-)
Leave a comment:
-
Originally posted by larhedse View PostApplied that fix in post 3 on that thread - no difference. The last post says Mono 6 - but since Mono 6 seems well not advisable to upgrade to...?
Leave a comment:
Leave a comment: