You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"text": "A thing\nAnother thing\nYet another thing\nMaybe this is progress\n\nLocalFile Status \n--------- ------ \nfile1 Success\nA thing\nAnother thing\nYet another thing\nMaybe this is progress\nfile2 Success\nA thing\nAnother thing\nYet another thing\nMaybe this is progress\nfile3 Success\n\n\n"
110
+
}
111
+
],
112
+
"execution_count": 2
113
+
},
114
+
{
115
+
"cell_type": "markdown",
116
+
"source": [
117
+
"So you would have to do something clever with jobs to get the output - like this - Notebooks will give you the output at the end by default but if you run this code in the console you will see what is happening"
"$JobScript = \"Write-Output 'I am a job';Start-Sleep -Seconds 20 ; Write-Output 'I am further in';Start-Sleep -Seconds 20 ; Write-Output 'I have finished'\"\r\n",
128
+
"Start-Job -Name $JobName {Write-Output 'I am a job';Start-Sleep -Seconds 20 ; Write-Output 'I am further in';Start-Sleep -Seconds 20 ; Write-Output 'I have finished'}\r\n",
"text": "\nId Name PSJobTypeName State HasMoreData Location Command \n-- ---- ------------- ----- ----------- -------- ------- \n19 Jobb BackgroundJob Running True localhost Write-Output 'I am a j...\nI am a job\nI am further in\nI have finished\n\n\n",
148
+
"output_type": "stream"
149
+
}
150
+
],
151
+
"execution_count": 13
152
+
},
153
+
{
154
+
"cell_type": "markdown",
155
+
"source": [
156
+
"BUt in this scenario it is really hard to do as the powershell cant read the output of the invoke-comand that is running the S3 upload command in real time as it sends the command off and doesnt get it back until the end"
0 commit comments