![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to write to stdin of another program (program A -> [stdin]program B) | vvaidyan | UNIX for Dummies Questions & Answers | 3 | 08-02-2008 05:21 PM |
| How to write to stdin of another program (program A -> [stdin]program B) | vvaidyan | High Level Programming | 1 | 04-30-2008 01:44 PM |
| redirection stdin | whited05 | Shell Programming and Scripting | 2 | 10-12-2005 02:03 PM |
| stdin device on HP | dangral | HP-UX | 2 | 04-21-2005 09:50 AM |
| stdin | marquis | High Level Programming | 2 | 04-14-2005 01:49 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Capturing stdin
Hi all,
Consider the following situation: - you launch an compiled binary application from inside a unix shell which presents a text-based type user interface where you can input information ... # echo "I am the $SHELL shell" # I am the /bin/bash shell # ./input # ... imagine the binary application 'input' to present here and you type input ... Now ... it would be straight forward to wrap the calling of the 'input' binary in a shell script which only does ./input. Everything would still work. But ... is there a way to capture all the input that is going to the 'input' binary from inside this intermediary script, without of course influencing the correct working. So as to actually log every character i'm typing into the binary ? Greetz |
|
||||
|
I don't understand it.
1. You wrote that this is a binary file - so comment lines #* are not allowed 2. You wrote some text that seems like a scripts comment because every line starts with # What do you have as input? Where you want to have the output? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|