Astrologic
Astrologic
CC#
Created by Astrologic on 2/17/2023 in #help
❔ ✅ Help getting remote launch to perform task (display off)
!close
21 replies
CC#
Created by Astrologic on 2/17/2023 in #help
❔ ✅ Help getting remote launch to perform task (display off)
Am I supposed to close this channel or something?
21 replies
CC#
Created by Astrologic on 2/17/2023 in #help
❔ ✅ Help getting remote launch to perform task (display off)
Thank you by the way, for attempting to help diagnose the issue.
21 replies
CC#
Created by Astrologic on 2/17/2023 in #help
❔ ✅ Help getting remote launch to perform task (display off)
I'm not a huge fan of requiring my apps to be run from task scheduler any time I need to run something using ssh, so I figure I'll probably create a C# application which can run any other application, and then put that in the taskscheduler, then I'll create another C# application that can run that task with the parameters for easier execution. It's a bit complicated, but I think that's going to be the best way to go about things.
21 replies
CC#
Created by Astrologic on 2/17/2023 in #help
❔ ✅ Help getting remote launch to perform task (display off)
I guess it doesn't really matter how I get to point B, as long as I get there.
21 replies
CC#
Created by Astrologic on 2/17/2023 in #help
❔ ✅ Help getting remote launch to perform task (display off)
I kind of cheated. I wrote a powershell script to create a scheduled task which starts the C# app, then I just ran the scheduled task from ssh. It works.
21 replies
CC#
Created by Astrologic on 2/17/2023 in #help
❔ ✅ Help getting remote launch to perform task (display off)
I'm thinking ssh is not allowing it to get the console window's handle, so I'm going to try a different approach.
21 replies
CC#
Created by Astrologic on 2/17/2023 in #help
❔ ✅ Help getting remote launch to perform task (display off)
Seems like it's running as expected. I have a feeling the issue is with the "GetConsoleWindow()".
21 replies
CC#
Created by Astrologic on 2/17/2023 in #help
❔ ✅ Help getting remote launch to perform task (display off)
Under all run conditions, the errorcode returned is 0.
21 replies
CC#
Created by Astrologic on 2/17/2023 in #help
❔ ✅ Help getting remote launch to perform task (display off)
Alright, I've modified the code. I'll have to scp it onto the remote system, then try the 3 different run methods. After that, I'll update you with the error codes.
21 replies
CC#
Created by Astrologic on 2/17/2023 in #help
❔ ✅ Help getting remote launch to perform task (display off)
Okay, I'll have to save LRESULT to a txt file or something, then read it.
21 replies
CC#
Created by Astrologic on 2/17/2023 in #help
❔ ✅ Help getting remote launch to perform task (display off)
I didn't.
21 replies