Modify python script to use stdout text as next stdin prompt in a loop - $100 max

Tamamlanmış İlan edilme: 3 yıl önce Teslim sırasında ödenir
Tamamlanmış Teslim sırasında ödenir

Using ubuntu 18.04 and experimenting with python3 text generating repos as per this simple example:

python3 [login to view URL] < [login to view URL] >> [login to view URL]

'[login to view URL]' is a text file with one sentence per line.

If '[login to view URL]' is 100 seed lines then 100 sequences will be written and appended to '[login to view URL]' based on the parameters used. This works without errors.

Instead of using '[login to view URL]' as input I would like to create a input-output loop that accomplishes the following:

1. Each generated output sequence from '[login to view URL]' is used as the next seed input for the same script.

For example. If '[login to view URL]' outputs 'The boy ran up the hill' that becomes the next input string for the python script.

2. Result from #1 above produces the next output sequence and is written to '[login to view URL]' This file contains both the generated sequences and generated seed lines.

3. Process repeats until the loop is terminated. This could be at count 100 or any value.

4. This would require only a single initial input seed line. All other seed input lines that follow are the generated output sequences from the '[login to view URL]' script.

I have tried to pipe the output as input but this only works if there are two different python scripts used.

Perhaps there is a simple combination of pipe, subprocess, tee or something else that will work.

Budget is $100 max for a working code snippet that can be added to '[login to view URL]'

Linux Kabuk Betiği Python

Proje NO: #25742021

Proje hakkında

17 teklif Uzak proje Aktif 3 yıl önce

Seçilen:

chseibt

Hello, I'm a software developer with 8+ years of software development experience. I have expertise in python, Django framework, web development and machine learning. Let me know the details in the chat.

%selectedBids___i_period_sub_7% gün içinde 50%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(2 Değerlendirme)
3.1

Bu iş için 17 freelancer ortalamada $86 teklif veriyor

goodwork20k

I am good in python along with automation and development, please let me know if you are good to award this project to me

$100 USD in 3 gün içinde
(92 Değerlendirme)
6.5
jalilbm

Hello! As I understood the whole thing can be made just by running the script and passing the text files as arguments (or inputs to the program if you want to) I can d that in the next few hours... please contact me Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(48 Değerlendirme)
5.8
SamirBanna

I am very interested in applying for your job since it seems to fit very will with my experience and skills. Regards SamirBanna

$100 USD in 5 gün içinde
(26 Değerlendirme)
4.6
deepme987

Hello, I can make a script so that a loop can work with 1 sequence at a time. So it'll get output form the 1st script in return and use it as parameter in the next script. I've worked with python for over 3 years, so I Daha Fazla

$100 USD in 3 gün içinde
(14 Değerlendirme)
4.7
QASIM7862001

I can complete in 24 hours Hey there, i am developer from the UK with over 9 years experience in web development. Upon reading your project description this seems like a task which i can start on right now and will n Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(4 Değerlendirme)
4.0
dduraipandian

I will be able to help you with the task. But we need to discuss about the existing script to modify as per your requirement. Please buzz me if you are interested to work to discuss.

$100 USD in 7 gün içinde
(11 Değerlendirme)
3.8
yarog

Hi, I'm a PhD candidate in computer science and I'm working with python on a daily basis. I'd like to add the desired loop to your script.

$80 USD in 7 gün içinde
(2 Değerlendirme)
1.8
Strahinja10

Hey, may I first of all suggest that you handle all that inside the python script, and second, if you really need it to work like that, no modification to your code are neccessary, you can just write a simple script (i Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)
1.7
Rachitkum55

i am expert in python i have almost about 2 year experience as Python Developer i did lots projects on python dill completed dead lines of projects on time i really serious about my responsibilities and work towards my Daha Fazla

$140 USD in 7 gün içinde
(3 Değerlendirme)
1.5
obsurf

Software dev expert. *** If you want quality work, then please tell me. *** I have skills in Python/Java/Qt. Be sure to get quality work and reliable help. Kindly allow me to work for you at my best. Thank you for seei Daha Fazla

$100 USD in 2 gün içinde
(0 Değerlendirme)
0.0
y4th0ts

I think I will be able to help you with this though I need more clarification on what you are trying to achieve. Looking forward to working with you!

$60 USD in 7 gün içinde
(0 Değerlendirme)
0.0
dineshbalaramanv

hi, I can help you on this. Can spend time in understanding things and make the complete flow dynamic. please reach out to me.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0