Author |
Message
|
skrv |
Posted: Thu May 15, 2014 3:32 pm Post subject: Help With ksh Script |
|
|
Centurion
Joined: 26 Oct 2012 Posts: 118
|
Hello,
am not good at scripting and appreciate anyones help.
We have solaris and z-linux environments with MQ7. I need a script which can move the FDC files to a folder (TEMP) under same FDC folder. |
|
Back to top |
|
 |
pintrader |
Posted: Thu May 15, 2014 5:18 pm Post subject: Re: Help With ksh Script |
|
|
Disciple
Joined: 22 Jan 2014 Posts: 164
|
skrv wrote: |
Hello,
am not good at scripting and appreciate anyones help.
We have solaris and z-linux environments with MQ7. I need a script which can move the FDC files to a folder (TEMP) under same FDC folder. |
very simplistic:
Code: |
#!/bin/ksh
mv /path/where/my/FDC/*.FDC /path/where/my/FDC/TEMP
|
|
|
Back to top |
|
 |
skrv |
Posted: Thu May 15, 2014 6:19 pm Post subject: |
|
|
Centurion
Joined: 26 Oct 2012 Posts: 118
|
Thanks for the reply
But i want script to work on all servers when i run it from a full repository queue manager server |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu May 15, 2014 6:57 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Most monitoring/automation tools (Omegamon, for example) offer the capability to invoke scripts when events occur, like the creation of an FDC file. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
Vitor |
Posted: Fri May 16, 2014 4:45 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
skrv wrote: |
But i want script to work on all servers when i run it from a full repository queue manager server |
Use a tool (like sch) to run the script on each server.
You might do better posting this in a Unix forum rather than here, given the nature of your request. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jeevan |
Posted: Sat May 17, 2014 7:27 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
Vitor wrote: |
skrv wrote: |
But i want script to work on all servers when i run it from a full repository queue manager server |
Use a tool (like sch) to run the script on each server.
You might do better posting this in a Unix forum rather than here, given the nature of your request. |
One of the place I worked in the past, who were leader in their field, used to use an open source http://rundeck.org/ |
|
Back to top |
|
 |
|