Executing Multiple Unix Commands in one SSH Session from Java Program
I have the following java code which executes unix commands. i have opened a session. I have a file names test.txt in which i have many lines of GREP commands. I want to execute in a same session like follows.
Session sess= conn.openSession();
FileReader fr = new FileReader("test.txt");
BufferedReader br = new BufferedReader(fr);
When doing this, first line executes successfully but when it goes to second line, it says
java.io.IOException: A remote execution has already started."
how to execute multiple commands in a single session?
Please help me.
Last Post: 08-15-2006, 03:20 PM
By Dharmesh in forum .NET
Last Post: 10-01-2001, 03:47 PM
By JJ in forum Enterprise
Last Post: 07-06-2000, 04:50 AM
Tags for this Thread
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center