Author |
Message
|
viwmb |
Posted: Sun Jul 22, 2012 8:04 pm Post subject: Using Crontab for automation |
|
|
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 |
|
 |
smdavies99 |
Posted: Sun Jul 22, 2012 10:24 pm Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Mon Jul 23, 2012 1:54 am Post subject: |
|
|
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 |
|
 |
zpat |
Posted: Mon Jul 23, 2012 2:00 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Or using Control-M or some other Enterprise scheduler. |
|
Back to top |
|
 |
viwmb |
Posted: Mon Jul 23, 2012 12:42 pm Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Mon Jul 23, 2012 12:45 pm Post subject: |
|
|
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 |
|
 |
viwmb |
Posted: Mon Jul 23, 2012 2:43 pm Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Mon Jul 23, 2012 2:55 pm Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Tue Jul 24, 2012 4:38 am Post subject: |
|
|
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 |
|
 |
|