Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transformer Unix results...

Status
Not open for further replies.

Exie

Programmer
Sep 3, 2003
156
AU
Hi,

Just wondered if there was anything set by rsserver so I could pick up the cubes produced ?

I have a cron table which executes a shell script (not too dissimilar to rsserver.sh) which accpets a model file as a param and passes this to rsserver on the command line.

What I want to do is post-processing, copy the resulting cubes to a new location. As I'm using the one generic script to launch rsserver for all my models, I need to pickup what output was produced.

Any thoughts on how I could handle this ?

The only idea I have so far is to process the build log chop it up. This seems a bit messy and back-door-ish though.
 
in your mdl , you specify the output file like :
/usr/cubes/mytestcube.mdc
So if rsserver ends correctly this cube is created.
So after rsserver , in your script , do "mv /usr/cubes/mytestcube.mdc /usr/publishedcube/mytestcube.mdc

easy, isn't it ??
 
Why not place all your built cubes in a single directory, then check the file date-time to identify those that built during the last x amount of time.
That way, after all your cubes are built, you can disable all your existing cubes and move the whole block at once, then reenable.

Pain is stress leaving the body.

DoubleD [bigcheeks]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top