Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: send commands to a software (InsightII) from UNIX  (Read 8318 times)

0 Members and 1 Guest are viewing this topic.

umamahesh_t

  • Guest
send commands to a software (InsightII) from UNIX
« on: August 04, 2004, 02:43:25 PM »
hello friends..

iam new to UNIX and am desperately in need of an answer to my question.
how do u make a software( InsightII) work, without never leaving the shell?
i mean how do u send commands to another software..like invoking it, sending inputs to it and grabbing the output..?

Addy

  • Guest
Re: send commands to a software (InsightII) from U
« Reply #1 on: August 06, 2004, 12:51:48 AM »
What do you mean with "making a software work"? Building it? Installing it?
In which form did you recieve the program? As a binary package (*.rpm, *.deb; by the way: which distribution do you use?) or as sources (usually *.tar.gz or *.tar.bz2).

"Without never leaving the shell"
If you want to learn about the shell, read this: Bash Prompt HOWTO

umamahesh_t

  • Guest
Re: send commands to a software (InsightII) from U
« Reply #2 on: August 06, 2004, 12:01:37 PM »
hello there...

ok...here how it works..

first we enter Unix through Putty....then run insight II...now we are in Insight II domain..and we give commands to insight II...so it looks like this.

Unix>insightII> commands for insightII until we quit insight II.

what i need is...i dont want to enter insight II directly...i want to run it indirectly..like with a redirection thing...
it looks like this...
unix>some program which invokes and sends commands to insight II.

my ambiguity is due to my lack of knowledge..sorry...

thanks for the reply..

Addy

  • Guest
Re: send commands to a software (InsightII) from U
« Reply #3 on: August 07, 2004, 02:08:03 AM »
Maybe you mean this:
$ prog1 | insightII
This starts prog1 as well as insightII. Then the stdout of prog1 is directed to stdin of insightII, which means, if prog1 writes "quit" or something else to stdout, insightII will see "quit" just as if you had written it.

What is this command sending program? Does it already exist? Or do you want to program one?