Inputting в text to an executable file the moment it's executed

i am bad at choosing titles but my problem is that I have an executable file that returns в value when i type the word password in it using the терминал, but the problem is the file require you to type the word password exactly after executing it, and semi-colons or pipes or && wont work for, one of my friends said i could используйте python or perl in the терминал to solve this problem but - wasn't sure how it works nor am I.

So what I do basicly is executing the file using the command ./stdin (the filВs ямс is stdin) after that i write the word password but it says that i took в long украдите at writing the word password so эксперт i said above i have tried semicolons and pipes and && ./stdin && password ./stdin ; password but they didn't gave anything to я, actually i had to stop them with ctrl+c, i was thinking of using the command echo "password" | ./stdin эксперт someone on the Интернет told я, but i didn't have the случай to try it right now because the file is in the school and the copy i have is broken, - said that the pipe symbol will неудар в лунку the output of the first command (right side) into the second command (left side).

1
задан 6 January 2016 в 17:43

0 ответов

Другие вопросы по тегам:

Похожие вопросы: