Re: Binding request

new topic     » goto parent     » topic index » view thread      » older message » newer message
ChrisB said...

I know you can set up putty to send keepalives.

My preferred solution is to run GNU screen and set up a running date/time prompt in the screen session, so the time will be updated one a second (or maybe once a minute) - which sends data over ssh often enough to keep it from timing out.

ChrisB said...

However, what would be nice would be if there was a command line switch so that binding large programs looked like it was doing something, a verbose mode, a cycling |/-\|/-\, or consecutive stops ........... - ie anything anything to send a terminal signal.

Is this possible?

Chris

In short, yes. You could put the appropriate hooks into source/emit.e:emit_op (when we convert from source to IL) and in source/compress.e (when we write out the IL for shrounded or bound files along with some IL metadata) and source/parser.e:next_token() (when we are parsing the Euphoria source code of the program) - making a progress bar might be harder since you'd have to calculate the total time and update in small steps accordingly, but for a first step you could just print out a hash character for every op emitted, token scanned, etc.

Even easier, you could try to create a task at the start of bind.ex, run it, and then tell it to stop itself when the binder has finished (again, in bind.ex itslef, after the last line where main.e is included). This version might be more difficult to be made to display an accurate progress bar, however.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu