Writing The #! Line

Now that you have seen all the nitty gritty details, I will state two simple guidelines on how to write the #! line that should help you manage the other flags.

  • During development, either invoke expect scripts as "expect script" or use the line "#!path/expect -f“.

  • Production scripts should be invoked by name and use the line "#!path/expect —“.

Replace "path" (above) with whatever is appropriate for your system as I described on page 211.

Get Exploring Expect now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.