We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to be able to create a timeout such that the winexe stops executing in the remote server and returns control back to shell where it was initiated: for more details: https://www.experts-exchange.com/questions/29053524/timeout-for-a-command-running-from-linux-to-windows.html
I am trying this:
x=winexe -U user%pwd //vservername 'powershell.exe Get-WmiObject Win32_ComputerSystem | Select-Object -ExpandProperty NumberOfLogicalProcessors'
winexe -U user%pwd //vservername 'powershell.exe Get-WmiObject Win32_ComputerSystem | Select-Object -ExpandProperty NumberOfLogicalProcessors'
In some systems the command gets stuck in the remote system and does not come back, I would like to add a timeout to the above command, I tried this
x=timeout 10 winexe -U user%pwd //vservername 'powershell.exe Get-WmiObject Win32_ComputerSystem | Select-Object -ExpandProperty NumberOfLogicalProcessors'
timeout 10 winexe -U user%pwd //vservername 'powershell.exe Get-WmiObject Win32_ComputerSystem | Select-Object -ExpandProperty NumberOfLogicalProcessors'
but does not work.
Please help
The text was updated successfully, but these errors were encountered:
I also tried this, but when command is successful value of z is not set:
z=winexe -U domain/user%pwd //vservername 'cmd /C powershell.exe "Get-WmiObject Win32_ComputerSystem | Select-Object -ExpandProperty NumberOfLogicalProcessors"' & sleep 5;kill $!
winexe -U domain/user%pwd //vservername 'cmd /C powershell.exe "Get-WmiObject Win32_ComputerSystem | Select-Object -ExpandProperty NumberOfLogicalProcessors"'
Sorry, something went wrong.
No branches or pull requests
I want to be able to create a timeout such that the winexe stops executing in the remote server and returns control back to shell where it was initiated:
for more details:
https://www.experts-exchange.com/questions/29053524/timeout-for-a-command-running-from-linux-to-windows.html
I am trying this:
x=
winexe -U user%pwd //vservername 'powershell.exe Get-WmiObject Win32_ComputerSystem | Select-Object -ExpandProperty NumberOfLogicalProcessors'
In some systems the command gets stuck in the remote system and does not come back, I would like to add a timeout to the above command, I tried this
x=
timeout 10 winexe -U user%pwd //vservername 'powershell.exe Get-WmiObject Win32_ComputerSystem | Select-Object -ExpandProperty NumberOfLogicalProcessors'
but does not work.
Please help
The text was updated successfully, but these errors were encountered: