|
straightforward piping is not going to work for that. You could do:
|
|
09-07-2014, 04:01 PM,
|
|||
|
|||
|
straightforward piping is not going to work for that. You could do:
# Get the number, store it in an intermediary variable, and use it as an argument number=$(./NumDisplayer) ./NumAnalyzer $number # or just: ./NumAnalyzer $(./NumDisplayer) But this won't work if NumDisplayer needs to be constantly running. Edit: Cosmo's solution below is the way to do it in this case. Another way in this case would be to re-write your NumAnalyzer so that it reads numbers from stdin (e.g. using scanf/cin/read/whatever) instead of looking for them as command line arguments. Then you can use a pipe (or FIFOs, as thoughtfully says).
anil123, proud to be a member of VoIP Call Provider - Discussion Forums for the VoIP Call Provider since Jan 2014.
|
|||
|
« Next Oldest | Next Newest »
|
Search
Member List
Calendar
Help
