Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
straightforward piping is not going to work for that. You could do:
09-07-2014, 04:01 PM,
#1
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.
reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  do you want to make 200$ easy ? i have work for you megasoft 0 158 02-08-2018, 11:49 AM
Last Post: megasoft
Lightbulb looking for serious Direct Vendors to work with, providing huge traffic with Fast Pay samuel zeke 0 74 24-01-2017, 05:30 AM
Last Post: samuel zeke
  AccuCore VoIP ERP - Making your Work Smarter! Lina Speedflow 0 114 13-01-2017, 11:02 AM
Last Post: Lina Speedflow
  AccuCore VoIP ERP - Making your Work Smarter! juliaDanich 0 104 11-01-2017, 12:47 PM
Last Post: juliaDanich
  AccuCore VoIP ERP - Making your Work Smarter! Lina Speedflow 0 105 05-12-2016, 01:26 PM
Last Post: Lina Speedflow
  AccuCore VoIP ERP - Making your Work Smarter! Lina Speedflow 0 92 14-11-2016, 04:23 PM
Last Post: Lina Speedflow
  AccuCore VoIP ERP - Making your Work Smarter! juliaDanich 0 108 28-09-2016, 02:26 PM
Last Post: juliaDanich
  Want Instant Payouts for Your Work on International Premium Rate Numbers GATS 0 51 28-07-2016, 10:59 AM
Last Post: GATS
  Stuck in loads of work? Try Speedflow Outstaffing. juliaDanich 0 132 30-10-2015, 02:53 PM
Last Post: juliaDanich
  Transforming Digital Work space - Cloud FTP Storage Service only at $9/month for 100 anil123 0 121 23-09-2015, 01:57 PM
Last Post: anil123

Forum Jump:


Contact UsVoIP Call Provider ForumReturn to TopLite (Archive) ModeRSS Syndication