[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Writing trigger-matched output to file

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Writing trigger-matched output to file

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Silverwind   (9 posts)  [Biography] bio
Date Thu 09 Aug 2012 02:39 AM (UTC)  quote  ]
Message
I'm trying to figure out a way to write specific chunks of output to file after catching them with a trigger. Particularly, I want to pick up MUSH/MUX pages from a specific person and write them to a separate file. Unfortunately, I'm not sure how to go about this, as there doesn't seem to be a relevant option in the Send To drop box. There's an option to send it to the Log File, but I want this placed in a separate file. I can send things to a Notepad window, but would prefer to not have to manage it if at all possible.

The trigger itself is:

^Player pages\: .+$


... and I'd like to take what that catches and append it directly to, say, "player.txt", preferably in MUSHclient's default log directory.

Is there something I'm missing that would make this very easy to do?
[Go to top] top

Posted by Fiendish   USA  (848 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Thu 09 Aug 2012 05:12 AM (UTC)  quote  ]

Amended on Thu 09 Aug 2012 05:13 AM (UTC) by Fiendish

Message
Lua has file IO functions. Send to script and do it that way.
http://www.gammon.com.au/scripts/doc.php?general=lua_io

http://aardwolfclientpackage.googlecode.com/
[Go to top] 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.


502 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]