It is currently 20 Aug 2018 4:37


Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 05 Nov 2009 11:03 
Offline
Nouveau
Nouveau
User avatar

Joined: 05 Nov 2009 12:00
Posts: 2
Bonjour,

Je voudrais savoir comment récupérer une variable d'un script shell sous unix dans un job control-M, pour ensuite passer cette variable au job suivant.

Merci d'avance


Top
   
 Post subject:
PostPosted: 06 Nov 2009 2:53 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 1148
Location: Ile de France
write it somewhere on unix FS

regards
philmalmaison


Top
   
 Post subject:
PostPosted: 06 Nov 2009 4:47 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 807
Location: Varese - Italy
On the unix shell use ctmvar
for global or scheduling group variables.


Top
   
 Post subject:
PostPosted: 09 Nov 2009 11:12 
Offline
Nouveau
Nouveau
User avatar

Joined: 05 Nov 2009 12:00
Posts: 2
mauriziog wrote:
On the unix shell use ctmvar
for global or scheduling group variables.


Il me faudrait plus d'info pour savoir comment utiliser "ctmvar"
Comment je l'initialise dans mon script et dans control-M?

Merci d'avance


Top
   
 Post subject:
PostPosted: 12 Nov 2009 7:53 
Offline
Nouveau
Nouveau
User avatar

Joined: 29 Nov 2006 12:00
Posts: 37
Location: Ile de France
Bonjour,

Voici un exemple d'utilisation avec une globale variable:

Dans votre script :
1°) initialiser les variables d'environnement (sur un agent par exemple CONTROLM=HomeDirAgent/ctm; mettre dans PATH et LIBPATH ou LD_LIBRARY_PATH,suivant l'OS, HomeDirAgent/ctm et HomeDirAgent/ctm/scripts)
2°) Initialiser la globale variable ctmvar -action set -var "%%\NomDeLaVariable" -varexpr "ValeurDeLaGlobale"

Dans le job Control-M :
onglet set : %%PARM1=%%NomDeLaVariable
et dans le script lancé vous avez dans $1 ValeurDeLaGlobale


Cordialement


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 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