ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Using Crontab for automation

Post new topic  Reply to topic
 Using Crontab for automation « View previous topic :: View next topic » 
Author Message
viwmb
PostPosted: Sun Jul 22, 2012 8:04 pm    Post subject: Using Crontab for automation Reply with quote

Novice

Joined: 22 Jul 2012
Posts: 19

Hello friends,

Can anyone please give/post a sample script for the deployment and automation of the .bar file using the crontab onthe server.

Thanks in Advance.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Jul 22, 2012 10:24 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Why?

Why would you want to do this and not deploy using a tool like ant after extracting the deployable object sources from your source control system and creating the object?

Then how hard is it to write a little bit oh bash to test for a file and if present issues and msqideploy followed by a move of the file to another directory?

Linux shell scripting 101.
_________________
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
View user's profile Send private message
mqjeff
PostPosted: Mon Jul 23, 2012 1:54 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

so the thing to do is make sure you have a single script that will perform the build you want.

then tell your linux systems admin to schedule the script to run using cron.
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Jul 23, 2012 2:00 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Or using Control-M or some other Enterprise scheduler.
Back to top
View user's profile Send private message
viwmb
PostPosted: Mon Jul 23, 2012 12:42 pm    Post subject: Reply with quote

Novice

Joined: 22 Jul 2012
Posts: 19

Why?

Why would you want to do this and not deploy using a tool like ant after extracting the deployable object sources from your source control system and creating the object?

Then how hard is it to write a little bit oh bash to test for a file and if present issues and msqideploy followed by a move of the file to another directory?

Linux shell scripting 101.

Can YOU provide me an example as an explanation for the above.

Thank You
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jul 23, 2012 12:45 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

viwmb wrote:
Can YOU provide me an example as an explanation for the above.


Are you asking for a script to be written for you, for free?

Are you asking for assistance with basic unix shell scripting?

Are you asking for a deeper explanation of what was said?

Have you done any research on automating the build and deploy of message broker artifacts? Like, for example, on IBM's website in their developer works section?
Back to top
View user's profile Send private message
viwmb
PostPosted: Mon Jul 23, 2012 2:43 pm    Post subject: Reply with quote

Novice

Joined: 22 Jul 2012
Posts: 19

I am asking assistance with the basic script and asking a deeper explanation of what was said(about using or not using the ant script).
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jul 23, 2012 2:55 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

viwmb wrote:
I am asking assistance with the basic script


Why? You've already been told a) this isn't a good idea & b) if you want to persist in doing it any Unix competent person on your site (like the sys admin) can assist and/or do it for you.

viwmb wrote:
asking a deeper explanation of what was said(about using or not using the ant script).


Deeper explanation of what? A few minutes research will show you that ant comes with all the facilities you'd need to build into a script.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jul 24, 2012 4:38 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

There is a developerworks article on building and deploying broker resources.

It contains a sample ant script.

You can then write a unix script that does nothing other than call the ant script.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Using Crontab for automation
Jump to:  



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 vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.