cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
349
Views
5
Helpful
3
Replies
howardc36
Beginner

TES 5.3.1 sacmd modrule -J "<class name>" returns invalid job class argument

The docs indicate modrule should work as follows but it returns invalid job class argument.  The class "My Class" is defined and job alias is correct.   Here is the cmd syntax I used.:

sacmd modrule -a myjobalias -J "My Class"

I would like help to understand why class args is invalid.  Appreciate the help.

I wish I could get more verbose output to see what its doing which leads to my second question, anyone know how to get verbose output?

 

3 REPLIES 3
Derrick Au
Enthusiast

Hi Howard,

 

Add a pipe in between as shown in the example below:

SACmd modrule -a myjobalias | -J ID "My Class"

 

BR,

Derrick Au

I have some pretty extensive experience with CMD line...you need quotes when you have values with spaces. This is true of MODRULE and other CMD line Commands

SA>modrule -i 56034 -J JC with Space

Error: invalid job class argument
SA>modrule -i 56034 -J 'JC with Space'

Error: invalid job class argument
SA>modrule -i 56034 -J "JC with Space"

Request sent to Master.
 

you do not need quotes when  value does not have quotes (on most commands)

modrule example using alias and jobid

SA>modrule -a 56034A -J Tidal

Request sent to Master.
SA>modrule -i 56034 -J Tidal

Request sent to Master.

Ignore my posting. Marc hit the nail right on the head :D

Content for Community-Ad
This widget could not be displayed.