It is currently 17 Oct 2017 6:37


Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 29 Jul 2014 4:12 
Offline
Nouveau
Nouveau
User avatar

Joined: 10 Oct 2008 12:00
Posts: 15
Hello

I am trying to run this from an OS job type:
Code:
ctmvar -action set -var "%%\myvar" -varexpr "abc123"


but the job fails and the sysout shows:
Code:
+ ctmvar -action set -var 'CTMERR\myvar' -varexpr abc123
Output:
Var name 'CTMERR\myvar' in -VAR invalid: it must begin with %%
usage: ctmvar
  -ACTION                <LOAD|SET|DELETE|LIST>
  [ -VAR                   <Variable> ]
  [ -VAREXPR               <Variable Expression> ]
  [ -FILENAME              <Filename> ]
  [ -QUIET ]
  [ -DEBUG                 <debug level> ]


Result:    Failure.


What am I doing wrong?
K.


Top
   
PostPosted: 29 Jul 2014 6:25 
Offline
Nouveau
Nouveau
User avatar

Joined: 10 Oct 2008 12:00
Posts: 15
In addition, the "abc123" is actually the result from piped grep and cut statements


Top
   
PostPosted: 30 Jul 2014 11:22 
Offline
Nouveau
Nouveau
User avatar

Joined: 26 Apr 2005 12:00
Posts: 696
Location: PARIS
Hi

As you can see

ctmvar -action set -var 'CTMERR\myvar' -varexpr abc123

CTMERR is because your variable is unresolved.

Try reading this post


Top
   
PostPosted: 31 Jul 2014 4:03 
Offline
Nouveau
Nouveau
User avatar

Joined: 10 Oct 2008 12:00
Posts: 15
Thanks ... I was missing the #


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved