question on python syntax

J. Cliff Dyer jcd at sdf.lonestar.org
Mon Sep 10 20:24:35 EDT 2007


Andrew Robert wrote:
> a.m. wrote:
>> If I type this in shell
>>
>> $ ./yourfile.py 12:34 PM &
>>
>> What does '$', '.', '/' and '& means in this succession? Note:
>> 12:34 PM is a argument to the yourfile.py.
>>
>
> This not python syntax but Unix shell.
>
> $             = shell prompt ./            = look for the program
> in my current working directory yourfile.py   = the program name
> 12:34         = argument 1 PM            = argument 2 &
> = run in background
And just to be perfectly clear, you don't type the $.  It's already
there for you, in some form; your prompt may not be a $.

Cheers,
Cliff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070910/dbad0b86/attachment.html>


More information about the Python-list mailing list