shell tag

84 questions


1 answers
335 views
0
How shell(bash) retrieves multiple values from the JSON string and substitutes them into environment variables

I'd like to get multiple values from the following JSON string and substitute them into the environment variable.It didn't work.Shell didn't work as expectedjson_string='{name:John, age:30, city:New Y...

1 years ago

1 answers
397 views
0
The powerhell GUI fails to exit during sleep.

In powershell, use In summary, function func1{ for($i=0;$i-lt10;$i++){ Write-Host$i start-sleep1 }}$form.Add_Shown({func1})$form.ShowDialog()It's like this.The x button in the upper right corner of ...

1 years ago

1 answers
337 views
0
How to Process After ShowDialog

In powershell, click If you do $form.ShowDialog(), the process will stop completely.How do I process Write-Host hoge one second after ShowDialog?Shall we?When I used Show() instead of ShowDialog, the ...

1 years ago

1 answers
460 views
0
Can I get the values of other application forms in Powershell?

For example, can I get the edit (character input) part of Notepad or the string displayed on a specific form of any application from Powershell?Environment:Powershell 5.1Windows 10*Spy++ is not availa...

1 years ago

1 answers
333 views
0
How to Call PowerShell Commands from Python and Pass Output to Python

I tried calling the PowerShell command from Python as follows, but the return value was only displayed on the screen, but I could not receive it from Python.importosos.system(powerershell-Command Get-...

1 years ago

2 answers
469 views
0
What is Forms[0] for Invoke-WebRequest results on PowerShell?

There are some parts of the code listed on the following site that I don't understand.Why are you substituting Forms[0] for $response?What does it mean?Form posts with PowerShell $form=$response.Forms...

1 years ago

2 answers
444 views
0
I want PowerShell to array everything that matches the regular expression.

If the following conditions exist, I would like to include the contents of the matched parentheses in the array.How do I achieve this with PowerShell?conditions:$data={ab}, {cd}, {ef}...#This length i...


2 answers
419 views
0
I want PowerShell to array everything that matches the regular expression.

If the following conditions exist, I would like to include the contents of the matched parentheses in the array.How do I achieve this with PowerShell?conditions:$data={ab}, {cd}, {ef}...#This length i...


2 answers
467 views
0
What is Forms[0] for Invoke-WebRequest results on PowerShell?

There are some parts of the code listed on the following site that I don't understand.Why are you substituting Forms[0] for $response?What does it mean?Form posts with PowerShell $form=$response.Forms...

1 years ago

1 answers
424 views
0
Cannot expand variable in backquote

A shell script that moves a file containing the string ice into the ice folder.There are two ice creams in the cord.I'd like to do this only in one place, but I don't know how to write it.I would appr...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.