Which makes total sense. However when I remove the jobstatus parameter (as I want to specifically query once job is completed) the message I recieve back to the command line is as follows:Waiting for job...
Finished waiting for job
Job Status : (1)
Status code = 1
Can anyone tell me what is generating this status code? And why it should be different to the job status code now?Status code = 0
The following is the code being used with the jobstatus parameter and then after it the code without it:
with:
Code: Select all
dsjob -server $DS_Server -user $DS_User -password $DS_Pwd -run -mode NORMAL -par
am Staging_Dir=$Staging_Dir -param Outbound_Dir=$Outbound_Dir -param RDS_Version
=$RDS_Version -param RDS_Hierarchy=$RDS_Hierarchy -jobstatus $DS_Project $DS_Job
Code: Select all
dsjob -server $DS_Server -user $DS_User -password $DS_Pwd -run -mode NORMAL -par
am Staging_Dir=$Staging_Dir -param Outbound_Dir=$Outbound_Dir -param RDS_Version
=$RDS_Version -param RDS_Hierarchy=$RDS_Hierarchy $DS_Project $DS_Job