Find Jobs
Hire Freelancers

C++ Binary Stream File Splitter -- 2

$30-250 USD

完了済み
投稿日: 8年以上前

$30-250 USD

完了時にお支払い
I have tried to split the output of a named pipe (mkfifo) using the "tee" command in linux with no luck. I suspect that the file input that I am directing to tee is in a binary format since a named pipe works but when tee is introduced into the pipe, it breaks. I have successfully streamed from the source to fifo pipe and captured the output to the listening application that is listening to the fifo pipe. (This is for a raspberry pi. ) I am looking for a simple C++ program that is able to take 2 command arguments (for the output named pipes) and feed a piped input into this C++ program and have the stream split and output to both named pipes in the directory. Example: This does not work but the concept is the same. {command to initiate binary stream} | tee fifo1 | tee fifo2 Desired program: {command to initiate binary stream} | C++Program argument1 argument2 This part is very important. The program will need to have input piped from raspivid to the program then expect 2 arguments. The arguments will be two named pipes to send the binary stream to. The data stream needs to be duplicated to both named pipes (not half to one pipe and half to other,duplicate stream) raspberrypi# raspivid | cprog argument1 argument2 Basically this would be a tee script but pass binary into both named pipes. Something like this with the ability to split the incoming stream: // writing on a text file #include <iostream> #include <fstream> using namespace std; int main () { ofstream myfile ("[login to view URL]"); if (myfile.is_open()) { myfile << "This is a line.\n"; myfile << "This is another line.\n"; [login to view URL](); } else cout << "Unable to open file"; return 0; } Also, a little help to get this compiled and working on the command line. (raspberrypi)
プロジェクト ID: 8345048

プロジェクトについて

4個の提案
リモートプロジェクト
アクティブ 9年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
I can do it by tomorrow morning. I guarantee that this will work, just I will need you for more details, and for testing because i do not have raspberry pi here at the moment. Contact me in inbox so we can discuss it in more details.
$100 USD 2日以内
0.0 (0 レビュー)
0.0
0.0
この仕事に4人のフリーランサーが、平均$203 USDで入札しています
ユーザーアバター
Hi. I have 5 years of experience in C-C++ withhands on experience in embedded systems. I can do this work with utmost efficiency. Please consider my bid. Thank you
$222 USD 7日以内
5.0 (13 レビュー)
3.9
3.9
ユーザーアバター
Hey, i think i can help you with this project, I have a lot of experience with C/C++ and I actually like your project, so maybe we can talk. Thank you
$333 USD 3日以内
5.0 (1 レビュー)
1.4
1.4
ユーザーアバター
A proposal has not yet been provided
$234 USD 4日以内
0.0 (0 レビュー)
0.0
0.0

クライアントについて

UNITED STATESのフラグ
Springfield, United States
5.0
4
お支払い方法確認済み
メンバー登録日:3月 23, 2014

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。