Author |
Message
|
amitkothari18 |
Posted: Fri Aug 12, 2011 9:39 am Post subject: Executing UNIX scripts from WMB |
|
|
Novice
Joined: 12 Feb 2011 Posts: 24
|
Hi
Another query, is there a way to execute UNIX scripts from WMB code, like we invoke store procedure of Java procedure?
We have WMBv6.1.0.8 deployed on AIX environment. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Aug 12, 2011 10:02 am Post subject: Re: Executing UNIX scripts from WMB |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
amitkothari18 wrote: |
Another query, is there a way to execute UNIX scripts from WMB code |
Yes. Get a JCN to do it.
A better question is why exactly would you want to? Or need to?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
amitkothari18 |
Posted: Fri Aug 12, 2011 10:07 am Post subject: Thanks for the reply. |
|
|
Novice
Joined: 12 Feb 2011 Posts: 24
|
As you might be aware that with WMBv6.1.0.6 they had hard coded the timeout value for File output nodes to 5sec. Since, we recently upgraded to WMBv6.1.0.8 we started experiencing a lot of ftp failures.
IBM had fixed it with WMBv6.1.0.9 but due to our project deadlines, we can not afford to upgrade to 6.1.0.9 at this time.
We are trying to find alternate ways of doing ftp, one of the options was to use a shell script to do it but since cronjob has very less visibility so we were trying to see if we can use WMB to do that for us.
Any suggestions for this are welcomed....also by JCN u meant Java Compute Node, right? |
|
Back to top |
|
 |
Vitor |
Posted: Fri Aug 12, 2011 10:19 am Post subject: Re: Thanks for the reply. |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
amitkothari18 wrote: |
As you might be aware that with WMBv6.1.0.6 they had hard coded the timeout value for File output nodes to 5sec. |
What?
amitkothari18 wrote: |
IBM had fixed it with WMBv6.1.0.9 but due to our project deadlines, we can not afford to upgrade to 6.1.0.9 at this time. |
So rather than take a couple of hours out to perform the upgrade, you're going to spend a couple of days knocking together a solution that's not as good as the one in 6.1.0.9 and will be redundant when you finally upgrade? This makes sense how?
amitkothari18 wrote: |
We are trying to find alternate ways of doing ftp, one of the options was to use a shell script to do it but since cronjob has very less visibility so we were trying to see if we can use WMB to do that for us. |
You're mad.
amitkothari18 wrote: |
Any suggestions for this are welcomed |
Apply the upgrade.
amitkothari18 wrote: |
JCN u meant Java Compute Node, right? |
Yes. And you is spelt "you" not "u". This isn't Twitter nor is it an SMS message.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
amitkothari18 |
Posted: Fri Aug 12, 2011 10:34 am Post subject: Thanks again for being truthful |
|
|
Novice
Joined: 12 Feb 2011 Posts: 24
|
Being a mere developer in a big organization you do not get a lot of say in a lot of things and at times you have to choose alternative solution which might not be the best possible solution at that time.
I know using scripts to ftp is not a very good solution and definitely upgrading WMB is the simplest option.
But since we had done 6.1.0.8 upgrade to fix a issue and it resulted in this new issue so before the upgrade we need to understand all the pros and cons of doing it and how it is going to impact all the other applications that are built on WMB platform in our organization.
I really admire all the help and support you provide. Thanks for all the help. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Aug 12, 2011 10:39 am Post subject: Re: Thanks again for being truthful |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
amitkothari18 wrote: |
Being a mere developer in a big organization you do not get a lot of say in a lot of things and at times you have to choose alternative solution which might not be the best possible solution at that time. |
Granted, but you can still push back against such solutions, especially when they're going to waste project time in the long run.
amitkothari18 wrote: |
But since we had done 6.1.0.8 upgrade to fix a issue |
Why didn't you go to 6.1.0.9?
amitkothari18 wrote: |
, but it resulted in this new issue so before the upgrade we need to understand all the pros and cons of doing it and how it is going to impact all the other applications that are built on WMB platform in our organization. |
If you don't accept the new functionality the impact is near-zero.
And why was moving to 6.1.0.8 to fix an issue not a problem, but moving to 6.1.0.9 to fix this issue is? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
amitkothari18 |
Posted: Fri Aug 12, 2011 10:47 am Post subject: Re: Thanks again for being truthful |
|
|
Novice
Joined: 12 Feb 2011 Posts: 24
|
Why didn't you go to 6.1.0.9?
amitkothari18 wrote: |
IBM had suggested us to move to 6.1.0.8 for the specific problem we were experiencing at that time. |
If you don't accept the new functionality the impact is near-zero.
And why was moving to 6.1.0.8 to fix an issue not a problem, but moving to 6.1.0.9 to fix this issue is?
amitkothari18 wrote: |
It was not a problem then because we were not in the middle to project deadlines, this was almost 3-4 months back. But, since now we know that upgrade to 6.1.0.8 resulted in other issues so our PM wants us to be sure that going to 6.1.0.9 would not create any further issues. And since the development is done by a different team and they do not want to change anything as they are already in a time crunch so upgrading at this time does not seem possible but yes, will try to push harder |
|
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Aug 12, 2011 12:25 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
you might like to look at the JobCotrolNode Support Pack.
It will allow you to execute shell scripts without having to go through all that Java faff (ducks to avoind incoming missiles)  _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Aug 12, 2011 12:57 pm Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
smdavies99 wrote: |
Java faff (ducks to avoind incoming missiles) |
The Java nation is conserving ammo for just the right moment. Besides, its Friday. Can we buy you a pint? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|