LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-06-2014, 02:12 AM   #1
hijoshi
LQ Newbie
 
Registered: Mar 2014
Posts: 7

Rep: Reputation: Disabled
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.
 
Old 03-06-2014, 02:27 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
create a shell script, copy it to the target host, execute and copy (redirect) back the result.
 
Old 03-06-2014, 03:14 AM   #3
hijoshi
LQ Newbie
 
Registered: Mar 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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.
 
Old 03-06-2014, 03:16 AM   #4
hijoshi
LQ Newbie
 
Registered: Mar 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-06-2014, 03:46 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
expect can handle such kind of interactions
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
commands to be executed in order for a batch jobs! faizlo Programming 11 01-26-2009 04:43 AM
Batch commands for Linux? mivison Linux - Newbie 3 04-29-2007 05:59 PM
batch commands to debugfs with a read-only filesystem billhowe Red Hat 1 08-21-2004 11:02 AM
.s batch file commands - pause??? webamoeba Linux - Newbie 2 01-27-2004 11:15 AM
Creating Batch Commands? reefadt Linux - Newbie 3 08-17-2003 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration