File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes passing commands using socket connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply locked New topic
Author

passing commands using socket connection

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi,

I need to access a asterisk server using socket connection and i have to execute the commands which are all in asterisk through socket.Is it possible to do?Now the following code helps me to login to the asterisk server.


I got the output as

Asterisk Call Manager/1.0


for example ,in asterisk server ,if i give the command asterisk -r from the console,the asterisk will be started.

How can i use this command in java socket program mentioned above?please assist me to do this.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing commands using socket connection
 
Similar Threads
Socket program for linux
Nullpointer exception in servlet
hoded call channel is not printed
executing linux commands through java socket
accessing a server using socket connection