Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tivoli TASKS - hopefully an easy problem to resolve!

Status
Not open for further replies.

blx

MIS
Oct 9, 2002
23
GB
Hope someone can help with this relatively easy problem.
I am trying to create a Tivoli task that will run the following command:

wdmlseng -e <endpoint_label> -verbose

I can create the script (wdmlseng.sh) which runs quite happily from the command line from an already sourced Tivoli command prompt. However, the problem I have is that when I put it into a task, it always fails.
I know that this is because the environment isn't sourced when the script is run. The question is, how do I source the environment?
My script looks like this:
#!/bin/sh
c:\winnt\system32\drivers\etc\Tivoli\setup_env.sh
wdmlseng -e $1 -verbose
exit0

Can anyone throw any light on why this will not run from a task, but will run from a sourced environment.

Thanks in advance

blx
 
Well, to source the environment from a bash shell, you'd want to do something along the lines of (the &quot;.&quot; instructs the shell to read and execute commands from filename and return):

. <filename>

e.g.

. /winnt/system32/drivers/etc/Tivoli/setup_env.sh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top