Result [link]

AC

Code [DL]

IO.exec("echo 'obase=10;ibase=2;' > i.txt");
IO.exec("cat input >> i.txt");
IO.exec("echo '' >> i.txt");
print IO.exec("cat i.txt | bc");

stdin

1101110110001111101000000110101001011110010011001101101000111001101011001010010111100111001011010111

stdout

1097117137656149263930336637655

stderr

strace