![](/img/trans.png)
[英]When I try to write to a file using python script in a batch file and then run it. It doesn't write to the file
[英]Cloud Services to run Batch script when file is uploaded?
我希望對從我的網站上載的文件運行批處理腳本(一次一個),並返回該批處理腳本生成的結果文件。 該網站托管在共享的Linux環境中,因此我無法在服務器上運行批處理文件。
聽起來我可以使用Amazon S3和Amazon Lambda完成某些工作,但是我想知道是否還有其他服務可以使我完成相同的任務。
我建議您研究S3事件和Lambda。
使用S3事件,您可以在S3存儲桶中的放置和刪除操作上觸發lambda函數,並且根據您的“批處理文件”任務,您可能可以純粹在Lambda中實現目標。
如果您不能使用Lambda替換批處理文件的功能,則可以嘗試以下操作:
這里是一些相關的閱讀材料,可以幫助您實現上述方法:
亞馬遜SQS https://aws.amazon.com/documentation/sqs/
亞馬遜SNS https://aws.amazon.com/documentation/sns/
亞馬遜Lambda https://aws.amazon.com/documentation/lambda/
Amazon S3事件通知 http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html
適用於Powershell Cmdlet的AWS工具參考 http://docs.aws.amazon.com/powershell/latest/reference/Index.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.