Launch and run the commands from shell script

 sam -

I have a requirement to launch a buzybox (Qemu)shell and needs to pass the commands to get the result. How i can achieve this.

for example:

I have the running qemu and i am telnetting to get shell.

Open the terminal and do a
this command will takes to a busybox shell now type "ps" command this will gives all the running process inside the qemu.

Now i want to automate the above steps in a shell scripting something like
#! /bin/sh

Please Help Me.

2 replies

Got it!.... below code works for me Thanks......

#! /bin/bash

sleep 1
) | telnet

Thank you

A few words of thanks would be greatly appreciated. Add comment

CCM 2821 users have said thank you to us this month


I am using ksh. From shell script I am executing a command to set a clearcase view. After the view is set there is a new subshell comig up. In that subshell i want to execute a command.


ct setview viewname
. .profilie

can yu please tell me how to achieve that
but what to do to activate the code
dear dhamu

for automating clear case give the command from atria path.profile changes if u directly setview