An interesting question about "print '\a'"
Chris F.A. Johnson
cfajohnson at gmail.com
Mon Oct 24 00:40:20 EDT 2005
On 2005-10-24, Anthony Liu wrote:
> We know that if we do
>
> print '\a'
>
> the bell will sound.
>
> Now, why do I hear the sound on my local machine when
> I run a python script on a remote host?
>
> I understand if I hear it when I do
>
> print '\a'
>
> on my local machine.
>
> Does the command get sent back to the client machine?
The code is printed to stdout, which is your terminal. Your
terminal interprets ^G as a beep.
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
==================================================================
Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress
<http://www.torfree.net/~chris/books/cfaj/ssr.html>
More information about the Python-list
mailing list