LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   batch commands through remote login (https://www.linuxquestions.org/questions/linux-general-1/batch-commands-through-remote-login-4175497209/)

hijoshi 03-06-2014 02:12 AM

batch commands through remote login
 
I want to fire set of commands to retrieve some information from one Linux system to another linux system. The response to command may be little slow and may take few seconds. The response needs to be captured back. Typically it was done through Teraterm script from windows machine to linux machine. Please suggest suitable method of doing so.

pan64 03-06-2014 02:27 AM

create a shell script, copy it to the target host, execute and copy (redirect) back the result.

hijoshi 03-06-2014 03:14 AM

Quote:

Originally Posted by pan64 (Post 5129794)
create a shell script, copy it to the target host, execute and copy (redirect) back the result.

Thanks for quick response. Shell Scripting is not possible because of some interactions involved in command execution that cannot be parsed through shell script.

The same was earlier (on windows) achieved by running Teraterm script that could handle such interactions.

Please suggest.

hijoshi 03-06-2014 03:16 AM

Thanks for quick response. Shell Scripting is not possible because of some interactions involved in command execution that cannot be parsed through shell script.

The same was earlier (on windows) achieved by running Teraterm script that could handle such interactions.

Please suggest.

pan64 03-06-2014 03:46 AM

expect can handle such kind of interactions


All times are GMT -5. The time now is 01:27 AM.