03-05-2012 05:39 AM
Hello!
I am trying to write a script to take all jobs that are on hold, off of hold. I got it working for an individual job, but can't find any information on a wildcard for usage.
I am using this
bemcmd -o201 -v -c"BEServer" -j"JOBName"
That works, (the names are obviously fillers) but I want to do something like
bemcmd -o201 -v -c"BEServer" -j*
But I get an error each time I use it.
Are there any workarounds, or a wildcard I don't know about? Thanks in advance.
-Josh.
03-05-2012 05:53 AM
Hi Josh,
Have you taken a look at the bemcmd.exe command line interface guide?
http://www.symantec.com/business/support/index?page=content&id=TECH126925
Thanks!
03-05-2012 06:21 AM
Yes, I did read that, I couldn't find anything pertaining to a wild card. Especially with wildcards.
03-05-2012 08:18 AM
it's been a few releases since I played much with BEMCMD, but don't remember wildcards being supported
I think you will have to query for all jobs on hold, parse out the job names and submit one cmd line per job to do what you want
03-05-2012 05:40 PM
1) Use the -o22 switch to generate the list of names on hold to a file
2) Use the -o201 -f<filename> to release the jobs.