Page 1 of 1

Generated OSH in UNIX

Posted: Mon Mar 10, 2008 4:34 am
by maheshsada
Can any one please throw some info where the generated osh for a parallel job will be located/directory in UNIX server.

regards
Magesh S

Posted: Mon Mar 10, 2008 4:56 am
by ArndW
In the project directory for each job number there will be a subdirectory named RT_SC{nnn} which will contain osh scripts.

Posted: Mon Mar 10, 2008 4:58 am
by ray.wurlod
Why?

Posted: Mon Mar 10, 2008 5:16 am
by maheshsada
Thanks for the info. How to find the Job number

I want to create a script which reads the OSH script to check for hardcoded parameter values in jobs so that peer reviews of the jobs can be done effectively. Any suggestion welcomed

regards
Magesh S

Posted: Mon Mar 10, 2008 5:48 am
by ArndW
If you troll through the DSXchange posts and look for "DS_JOBS" and job numbers you will see many examples of how to associate a job number with the appropriate job name; then you can search the sub-directories and look for your keyowords in the files.

Posted: Mon Mar 10, 2008 6:09 am
by ray.wurlod
A combination of find and grep commands will do that for you. For example something like:

Code: Select all

find $projectdir -name '*.osh' -print | grep '&['
That way you don't need to know the location of the osh directories in advance.