lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It turns out that os.execute doesn't have the expected behaviour on
vxWorks. 

The scripts are not being executed - although there was no indication of
that after running the command. 

Has anyone had to do this? Any solution?

Thanks.

-----Original Message-----
From: steve donovan [mailto:steve.j.donovan@gmail.com] 
Sent: Monday, May 25, 2009 6:25 AM
To: Shaughnessy, Katherine (CAR:QW70)
Subject: Re: Launch vxWorks Script from Lua Shell

On Mon, May 25, 2009 at 11:19 AM, steve donovan
<steve.j.donovan@gmail.com> wrote:
>> I have written several long vxWorks scripts. Currently I'm running 
>> them by piping the text to the shell.
>
 Well, you can always use the old standby:

 os.execute('COMMAND > /tmp/1')

 or even

 f = io.popen ('COMMAND')

 steve d.

PS. posted to you as well in case you aren't lurking on the list!