No troubles with scripts themselves, but my computer runs basic scripts
so fast I can’t see the output. So I was wondering is there a command I
can enter at the end of these scripts to slow them down or freeze the
results?
On 08/28/2013 09:23 PM, Joseph B. wrote:
No troubles with scripts themselves, but my computer runs basic scripts
so fast I can’t see the output. So I was wondering is there a command I
can enter at the end of these scripts to slow them down or freeze the
results?
ruby -e ‘loop {|i| p i}’ | less
You could put a ‘gets’ at the end of your script, which would make it
wait for enter to be pressed.
You could run them in a terminal too, but I suppose you just want to
double-click them?
If you’re only expecting simple output then a “gets” command at the end
works fine.
If you want more voluble output that you can copy and paste easily; then
why not output to a text file, and spawn a text editor which opens the
text file at the end of the script?
On Wed, Aug 28, 2013 at 9:23 PM, Joseph B. [email protected]
wrote:
No troubles with scripts themselves, but my computer runs basic scripts
so fast I can’t see the output. So I was wondering is there a command I
can enter at the end of these scripts to slow them down or freeze the
results?
Why don’t you just scroll your terminal window?
Thank you for the gets and lately my computer runs two terminals when I
run a script then closes the second once it’s finished, I’m guessing
thats a settings issue.