Re: [SLUG] Scripting question

From: Smitty (a.smitty@verizon.net)
Date: Thu Sep 05 2002 - 19:59:17 EDT


On Thursday 05 September 2002 17:02, you wrote:
> Joe O wrote:
>
> If portability is a concern, I would go with Python. It works the same
> way regardless of the shell (even non-Bourne shells). It even works on
> Windows!
>
>
> import os
> for i in range(0,5):
> os.system("echo hello world")
> os.system("echo run some other command")

I am assuming you would prepend the above script with py at the prompt to
call python and the os.system=linux in this case.
Smitty



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:00:15 EDT