|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Executing shell script from Collaboration |
« View previous topic :: View next topic » |
Author |
Message
|
vsircill |
Posted: Mon Nov 20, 2006 7:07 am Post subject: Executing shell script from Collaboration |
|
|
Novice
Joined: 05 Oct 2006 Posts: 10
|
Hi All,
Can anyone please let me know the way to execute shell script from collaboration. (Inside ICS).
Thank you all. |
|
Back to top |
|
 |
vennela |
Posted: Mon Nov 20, 2006 9:23 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Why do you want to do it?
I think executing a shell script from an ICS is an anti-pattern |
|
Back to top |
|
 |
vsircill |
Posted: Mon Nov 27, 2006 10:20 am Post subject: |
|
|
Novice
Joined: 05 Oct 2006 Posts: 10
|
The requirement is to ftp a file to a remote server.
Shell script simply takes the filename being passed as a parameter and FTP it to the server.
Though, we can ftp a file through JText Adapter, but I have to do that with a shell script.
Appreciate any help!
Thanks, |
|
Back to top |
|
 |
vennela |
Posted: Mon Nov 27, 2006 11:57 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Again, I would be cautious doing this kind of things using ICS.
One way to do it is by issueing some java calls in your collab to execute the shell script.
Look at java.lang.Runtime java class.
Code: |
java.lang.Runtime.exec(String []) |
|
|
Back to top |
|
 |
vsircill |
Posted: Mon Nov 27, 2006 1:31 pm Post subject: |
|
|
Novice
Joined: 05 Oct 2006 Posts: 10
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|