Page 1 of 1

Posted: Mon Nov 27, 2006 5:46 pm
by chulett
How exactly are you 'running this script in EXECSH line'? Hopefully not by putting this entire thing there, yes? Post your syntax, cut and paste directly from the Input Value box in the job to here please.

Posted: Mon Nov 27, 2006 6:02 pm
by sainath
Hi
No i am just cut and past entire thing in the EXECSH line. with file name and file location as parameters.let me know how to solve this problem.
thks

Posted: Mon Nov 27, 2006 6:27 pm
by chulett
You can't just type in something like that all on one line and expect it to work there - is that what you are saying? :?

If so, do as your subject line suggests - create a script with that as the content and execute the script via EXECSH. Or a batch file if you are on Windows.

Clarify something - your DataStage server is UNIX or Windows based? Your post mentions UNIX but the OS is marked as 'Windows'... which is it?

Posted: Mon Nov 27, 2006 8:23 pm
by sainath
hi
thanks for your reply .DataStage server is in UNIX .
thks
sai

Posted: Mon Nov 27, 2006 8:40 pm
by chulett
Ok... keep in mind the OS designator in that first post is meant to tell us what platform your Server is installed on. That way we can give proper UNIX versus DOS/Windows advise in situations like this.

So, a nice little korn shell script (or your shell of choice) seems to be in your future. :wink:

Posted: Tue Nov 28, 2006 5:17 am
by sun786
why dont you create a sheel script with the above code with extension .sh and put the same in ExecSH ( Instead of code)

Posted: Tue Nov 28, 2006 8:09 am
by chulett
Already been suggested - twice.

Posted: Sat Aug 04, 2007 11:39 pm
by kum_d
Hi

I have my datastage server on windows environment and i need to get file from unix server which is remote.

I need to execute the shell script in datastage job using execsh where datastage server is in windows environment.

Is it possible to this.

or is there any alternative for this to run the unix commands which are in that shell script.

can u pls advice me here?

Posted: Sun Aug 05, 2007 6:24 am
by chulett
kum_d, you already have two threads on this subject - do we really need a third? Not to mention the fact it is considered poor form to jump on the end of someone else's just-barely-related post.

Posted: Sun Aug 05, 2007 8:11 am
by kum_d
sorry for that