Closed Xiaohequ closed 2 years ago
Hi @Xiaohequ , I'm not 100% about your cases, but i believe everything works as expected:
I see. Thank you for the quick response.
I have a question. Is read -p "Press enter to start writing to the file (~/$filename)"
are needed for the download link to works / appear ? because i can't manage to make the sample script (write_file.sh) work without this ligne. Did I miss something ?
modified conf file: write_file_without_read.zip
Yes, exactly. For this sample I'm using a regular expression to parse script output And if there is no pathes in the output, then script server doesn't have anything for downloading
Kevin QUX @.***> schrieb am So., 20. März 2022, 16:41:
I have a question. Is read -p "Press enter to start writing to the file (~/$filename)" are needed for the download link to works / appear ? because i can't manage to make the sample script (write_file.sh) work without this ligne. Did I miss something ?
modified conf file: write_file_without_read.zip https://github.com/bugy/script-server/files/8311568/write_file_without_read.zip
— Reply to this email directly, view it on GitHub https://github.com/bugy/script-server/issues/542#issuecomment-1073277174, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJXPJKHPSQMEDS5PVKTZYDVA5BJXANCNFSM5RFJMPJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you modified the open/close state.Message ID: @.***>
Ok. But when I replace it by echo "Press enter to start writing to the file (~/$filename)"
, it's still not working. Did I do something wrong ?
@Xiaohequ I took your configs, replaced read
with echo
and it still worked for me
Ok. That's odd. I'm going to test this on a different os and with different version of python. I will let you know if i found something. Thank you for looking.
In passing month, I have tested the script server on other système/hardware (debian, ubuntu with python 3.6). i had the same issue (not prompted to download generated file after multiple execution). But today, when I tested it with docker image. It works great. Then I decide to retry on my previous unsuccessful machine. It works without any issue. Maybe I was unlucky. So it's all good for me. Thanks again. Have a nice day.
I'm very intereasted in this projet. I'm so happy to see someone else have the same idea as me. This projet seems very well maintained, great job.
I have seen 3 bugs in latest version 1.17.0
any_path# not working ( * did work)
script need pause (read -p) for download link to appear
any_path# not working
working: "output_files " : ["/home/ubuntu/tools/script-server/output/download_file/*"] did not working: "output_files " : ["/home/ubuntu/tools/script-server/output/download_file/##any_path#"]
"type": "inline-image" not show up
the link was received on the browser side, but no link or image are show up
my config file here config_files.zip