Flux rss
Search : in
By : Relevance Date Username
Statut : Not resolved

Launch and run the commands from shell script

Hari, on Thursday 18 September 2008 à 08:33:15
Hello,

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
"telnet 192.168.100.3"
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
telnet 192.168.100.3
ps
===============

Please Help Me.
-Hari
Configuration: Linux
Firefox 2.0.0.6
Reply to Hari  Report this message to moderators Go to last message

1


  • This message seems useful, vote!
  • Report this message to moderators
Hari, on Thursday 18 September 2008 à 13:18:08
Got it!.... below code works for me Thanks......

#! /bin/bash

(
ps
sleep 1
) | telnet 192.168.100.3

exit
Reply to Hari

2


  • This message seems useful, vote!
  • Report this message to moderators
 damu, on Thursday 13 November 2008 à 11:04:34
Hi,,


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.

like

ct setview viewname
. .profilie

can yu please tell me how to achieve that
Reply to damu

Résultats pour Launch and run the commands from shell script

Shell script Hi I have a text file named information.txt which contains information about Oracle Instances, I want to fetch data's from that text file and want to display an output using shell script. i.e. when I execute that shell script ,it should read all... en.kioskea.net/forum/affich-4477-shell-script
Html code in shell script.......... Hello, I want to share one of article of a recent magazine to write html code in shell script.......... any title Our content information goes here this is written in shell script as... en.kioskea.net/forum/affich-17105-html-code-in-shell-script
Pc shuts down after running command processor Hello, Can someone help me to solve my problem with my pc. My pc shuts down after running command processor. Your response will help. Thanks en.kioskea.net/forum/affich-23158-pc-shuts-down-after-running-command-processor

Résultats pour Launch and run the commands from shell script

Secretly enter a password within consoleSecretly enter a password within console Here is a simple method on how to limit the use of a specific command (as to prevent the display screen by disabling the echo command), using stty. Just launch the command (to disable) using stty... en.kioskea.net/faq/sujet-795-secretly-enter-a-password-within-console
Command prompts for WindowsCommand prompts for Windows *Control Panel *Windows utility and applications *Disk management *Connection management *Miscellaneous commands Some of these command below can cause harmful an undesirable functions, leading to... en.kioskea.net/faq/sujet-403-command-prompts-for-windows
Basic MS-Dos commandsBasic MS-Dos commands Here is a list of basic commands that you can use in a DOS prompt (e.g. a using a boot disk). To have additional information about these commands, type /? after entering the command in the DOS prompt... en.kioskea.net/faq/sujet-567-basic-ms-dos-commands

Résultats pour Launch and run the commands from shell script

Problem in linux shell scriptHello, kindly answer my question. question is: write a shell script in Linux to shift all characters in a file forward by five characters .(Thus "a" becomes "f"). faithfully syfi en.kioskea.net/forum/affich-33215-problem-in-linux-shell-script
Split a stringHello, I'd like to a split a string into two parts and assign them to two different variables. The string will be passed as an arugment to a Korn shell script for example I have a string something like: "01.Driver Report|userid@company.com"... en.kioskea.net/forum/affich-5864-split-a-string
How to open multiple files through one shellHello, I have a lot of text files to work :so i would like to run the fortran but each time i have to change the text files in the open statement it is a difficult task to handle such huge files is their any solution to command the shell script to... en.kioskea.net/forum/affich-32498-how-to-open-multiple-files-through-one-shell

Résultats pour Launch and run the commands from shell script

Download HTML TidyHTML Tidy is an utility allowing to prove and to optimize everything encodes HTML. The original version of this utility uses in mode of order only. The present version, called "MISTLETOE TIDY", has a graphic interface. Note that certain editors... en.kioskea.net/telecharger/telecharger-292-html-tidy

Résultats pour Launch and run the commands from shell script

Using Telnet Telnet is a protocol for emulating a remote terminal, which means that it can be used to run commands entered on a keyboard at a remote machine. The tool Telnet is an implementation of the Telnet protocol, which means that it translates the protocol... en.kioskea.net/utile/telnet.php3
Using Telnet Telnet is a protocol for emulating a remote terminal, which means that it can be used to run commands entered on a keyboard at a remote machine. The tool Telnet is an implementation of the Telnet protocol, which means that it translates the protocol... en.kioskea.net/outils-reseau/telnet.php3
Linux - The shell The command interpreter is the interface between the user and the operating system, hence the name "shell". The shell therefore acts as an intermediary between the operating system and the user thanks to command lines that are entered by the latter.... en.kioskea.net/linux/linshell.php3