Wrapped Unix command terminated with error

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
evee1
Premium Member
Premium Member
Posts: 96
Joined: Tue Oct 06, 2009 4:17 pm
Location: Melbourne, AU

Wrapped Unix command terminated with error

Post by evee1 »

We have number of UNIX shell scripts that I would like to run in DS, in a parallel fashion and I thought I would explore the wrapped parallel stages.
So I have created a wrapped parallel stage that runs "test -s" UNIX command.
When I'm running a job that contains this stage (and only this one) I;m getting the following error:
ValidateFileExists,0: Wrapped Unix command 'test -s /home/me/*.sh' terminated with error, exit code 1.ValidateFileExists

The "test -s /home/me/*.sh" has no issues when running from within a shell script on UNIX box.

What am I doing wrong?

Also, is there a more efficient way to run UNIX commands? I'd like to validate input files before they actually get loaded into DS (they can be quite large) and we already have scripts that do quite a lot of this validation and can be adapted.
evee1
Premium Member
Premium Member
Posts: 96
Joined: Tue Oct 06, 2009 4:17 pm
Location: Melbourne, AU

Post by evee1 »

Sorry, I've just realised I was checking on the wrong system :oops:.
No, I can go ahead with the rest of the tests I'd like to do.
Post Reply