Linux / UNIX Tech Support Forum
This is a discussion on Interacting with a Linux Process through Scripts within the Shell scripting forums, part of the Development/Scripting category; I would like to interact with an interactive Linux process using shell script. To brief, let me given an example. ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I would like to interact with an interactive Linux process using shell script. To brief, let me given an example.
consider mysqld, which when invoked turns into its own shell mode where users can type and execute queries. I've a requirement to invoke similar process and input the queries to it through shell script. Is there a way to input an interactive process to perform a set of batch operations on a go through shell script? -Mani |
| Sponsored Links | ||
|
|
|
||||
|
Use expect tool it is perfect for this kind of work.
__________________
Vivek Gite Linux Evangelist |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| interacting with expect | monteo7 | Shell scripting | 1 | 04-03-2008 04:42 PM |
| Killing of a process and send a mail if the process doesnot come up within 2 minutes | Prince89 | Shell scripting | 1 | 11-02-2008 12:39 PM |
| Command to find which process is utilizing max number of resources in Red hat Linux | Santosh Sharma | Linux software | 0 | 19-01-2008 03:12 PM |
| Ubuntu Linux control startup services or scripts | chimu | Shell scripting | 1 | 06-10-2006 01:17 AM |
| Linux krefilld process and what is it doing on my system? | sweta | Linux software | 1 | 31-08-2006 01:16 AM |