Write script output to log file

Case number:845813-988298
Topic:Game: Tools
Opened by:Tlaloc
Opened on:Friday, August 20, 2010 - 07:00
Last modified:Sunday, November 11, 2012 - 10:05

Related to this feedback http://fold.it/portal/node/988087

When a script runs, can the output of the script written to the output window be written to a fixed logfile. Something like foldit.log. It can replace the previous log file, so it only retains the last run.

Place a text header at the top of the file with the name of the script, the name of the puzzle, and the date and time of the run. Besides being useful, this is a safety measure to prevent malicious content from being created by a script. With this info at the top of the file, it should be safe and extremely useful.

Flush the output to the file with each print statement in the script.

We can then write external tools that can analyze the output, even in real time while the script is running.

(Fri, 08/20/2010 - 07:00  |  11 comments)

Joined: 09/18/2009
Groups: SETI.Germany

Good idea, Tlaloc!

Joined: 09/16/2010
Groups: None


Joined: 06/17/2010

read/write form/to text file, also write down output window.
sometimes that would be very use full :)

Joined: 08/11/2010

I'm working on a small project that desperately needs this capability

Joined: 08/06/2010
Groups: Contenders


I'm desparate.

I'd really like to gather statistics and other useful information I can feed back into my scripts.
I could gather wiggle and shake iteration probabilities base upon various condition.
I oculd gather good/bad mutation probabilities.
I could gather secondary structure probabilities.
Heck, I could gather game specific action effects and replay logs.

spvincent's picture
User offline. Last seen 13 hours 59 min ago. Offline
Joined: 12/07/2007
Groups: Contenders

I agree: something like this is badly needed for monitoring script performance.

Joined: 08/06/2010
Groups: Contenders

This morning I was thinking the recipe output window could have a check box where:
1. when clicked will ask for a file name.
2. when clicked will send recipe output to the named file.
3. will unclick when recipe output window is not open.

Joined: 09/16/2010
Groups: None

Ok, if you don't want our scripts to write a file directly... How about let us have a button on all scripts (like the show output) that Emails our results to our account email (email output). In this way we can use our own email scans to look for any malicious code.

Or print recipe output to a web page that we can access and cut and paste from.

This inability to analyze our script results retards our efforts.

Joined: 12/27/2010
Groups: None

Why is this excellent suggestion being ignored?

Tlaloc's picture
User offline. Last seen 4 days 22 hours ago. Offline
Joined: 08/04/2008
Groups: Mojo Risin'
Status: Open » Closed

not ignored...done!

Tlaloc's picture
User offline. Last seen 4 days 22 hours ago. Offline
Joined: 08/04/2008
Groups: Mojo Risin'
Status: Closed » Closed



Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, RosettaCommons