mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Make GetLogs work on Linux.
This commit is contained in:
parent
af090ea5da
commit
abd8839084
@ -41,7 +41,7 @@ var commands = [
|
||||
return;
|
||||
}
|
||||
;
|
||||
BrowserSockets.Connection.invoke("ExecuteCommandOnClient", "PSCore", 'Get-Content -Path "C:\\Windows\\Temp\\Remotely_Logs.log"', selectedDevices.map(x => x.ID));
|
||||
BrowserSockets.Connection.invoke("ExecuteCommandOnClient", "PSCore", 'Get-Content -Path "$([System.IO.Path]::GetTempPath())\\Remotely_Logs.log"', selectedDevices.map(x => x.ID));
|
||||
}),
|
||||
new ConsoleCommand("GetVersion", [], "Display the remote agent's version.", "GetVersion", "", (parameters, paramDictionary) => {
|
||||
var selectedDevices = Main.DataGrid.GetSelectedDevices();
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -58,7 +58,7 @@ var commands: Array<ConsoleCommand> = [
|
||||
AddConsoleOutput("No devices are selected.");
|
||||
return;
|
||||
};
|
||||
BrowserSockets.Connection.invoke("ExecuteCommandOnClient", "PSCore", 'Get-Content -Path "C:\\Windows\\Temp\\Remotely_Logs.log"', selectedDevices.map(x => x.ID));
|
||||
BrowserSockets.Connection.invoke("ExecuteCommandOnClient", "PSCore", 'Get-Content -Path "$([System.IO.Path]::GetTempPath())\\Remotely_Logs.log"', selectedDevices.map(x => x.ID));
|
||||
}
|
||||
),
|
||||
new ConsoleCommand(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user