1

Am attempting to execute an ls -al from within a Universe basic program and it isn't working as expected.

EXECUTE 'sh'
EXECUTE 'ls -al | grep FILELIST'

The program is shelling out to Linux, but then stops prior to execution of the ls command. Anyone have any ideas of how to get around this one?

Bill Hileman
  • 2,798
  • 2
  • 17
  • 24
ScaryMinds
  • 335
  • 3
  • 11

1 Answers1

2

you can try this code:

COMANDA = "ls -al | grep FILELIST"
EXECUTE "sh -c '":COMANDA:"'" CAPTURING DADES
CRT DADES

it work at SunOS.

  • This would require that you have an entry for SH in your VOC, which I think it pretty common (if not standard). – Van Amburg Mar 08 '17 at 21:00