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 Interchange Server + Adapters » Executing shell script from Collaboration

Post new topic  Reply to topic
 Executing shell script from Collaboration « View previous topic :: View next topic » 
Author Message
vsircill
PostPosted: Mon Nov 20, 2006 7:07 am    Post subject: Executing shell script from Collaboration Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Mon Nov 20, 2006 9:23 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
vsircill
PostPosted: Mon Nov 27, 2006 10:20 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Mon Nov 27, 2006 11:57 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
vsircill
PostPosted: Mon Nov 27, 2006 1:31 pm    Post subject: Reply with quote

Novice

Joined: 05 Oct 2006
Posts: 10

Thanks
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 Interchange Server + Adapters » Executing shell script from Collaboration
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.