1 of 1 people found this helpful
Add the file as a nsh script. in the add wizard on the parameters tab add the different flags and the values you want.
Added the NSH script to depot & also added the parametes to NSH script as below:
After this created the NSH Script Job & executed it.
It is running successfully & deleted the Jobs older than 50 days.
Everything seems fine. Thanks Bill.
In Job run logs below error is displayed:
parseJobs:6: parse error: condition expected:=
Shall I avoid this or is it will cause any problem in future?
I’m not sure – can you run it manually from the command line like:
Nsh –x script.nsh args
And see what is in the debug output ?
Executed the script manually from prompt & copied the logs.
PFA debug logs. The below error message is not present in debug logs collected.
The error "parseJobs:6: parse error: condition expected:=" only comes in console.
Debug logs.txt 17.7 K
how did you capture that output ? you need to redirect stdout and stderr to the log file like:
nsh -x script.nsh args > file.txt 2>&1