Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ General ➜ Problem again with Logging

Problem again with Logging

You need to log onto the forum to reply or create new threads.

  Refresh page


Pages: 1  2 

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #15 on Fri 11 Oct 2024 04:18 AM (UTC)
Message
I still think the simplest thing is to do WriteLog to say what you are examining and then use the trigger with omit from log to throw away lines which say "not found".

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Markomo   (28 posts)  Bio
Date Reply #16 on Fri 11 Oct 2024 05:48 AM (UTC)
Message
Nick Gammon said:

I still think the simplest thing is to do WriteLog to say what you are examining and then use the trigger with omit from log to throw away lines which say "not found".


do you have an approach for me on how to change the alias?

you said to save the output in a variable first and then check it?
Top

Posted by Markomo   (28 posts)  Bio
Date Reply #17 on Sat 12 Oct 2024 11:04 PM (UTC)

Amended on Mon 14 Oct 2024 07:05 AM (UTC) by Markomo

Message
Nick Gammon said:

I still think the simplest thing is to do WriteLog to say what you are examining and then use the trigger with omit from log to throw away lines which say "not found".


hey nick,

i now have the following alias. the alias does not saves the echo from the alias in the logfile. do you have any further input for me?

<aliases>
<alias
match="^b ([A-z]+)$"
enabled="y"
group="Forschen"
regexp="y"
send_to="12"
sequence="100"
>
<send>
vitem = "%1"
commands = {}
table.insert(commands, "untersuche " .. vitem)
table.insert(commands, "lausche " .. vitem)
table.insert(commands, "rieche " .. vitem)
table.insert(commands, "beruehre " .. vitem)
table.insert(commands, "fuehle " .. vitem)

for i, cmd in ipairs(commands) do
Send(cmd)
end
</send>
</alias>
</aliases>

/edit: i have found a solution for my problem and thank you for your help.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


1,916 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

You need to log onto the forum to reply or create new threads.

  Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.