Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nngoe

Pages: [1]
1
General / Starting client from PowerShell
« on: July 07, 2017, 09:23:46 PM »
Hi everyone,
we have a small cluster consisting of 10 nodes. For the moment I start each client using the remote desktop which is very time-consuming. My idea was to have a PowerShell script who can do this task. I started playing around but it is still not working as I expected. Maybe it has to do with Start-Process option which behaves differently than starting the client using the cmd.
Here is my current script, would be great if someone has more experience and can help me:

#Start photoscan in server mode
########################################
Start-Process -FilePath "C:/Program Files/Agisoft/PhotoScan Pro/photoscan.exe" -ArgumentList "--server --control 192.168.0.1 --dispatch 192.168.0.1"

# List with all computernames
$computers = Get-Content -Path C:\...\computerliste.txt


#Run Photoscan on remote computers
########################################
$s = New-PSSession -ComputerName $computers -Credential Admin

Invoke-Command -Session $s -ScriptBlock {
Start-Process -FilePath "C:/Program Files/Agisoft/PhotoScan Pro/photoscan.exe" -ArgumentList "--node --dispatch 192.168.0.1 --root Z:/test"
}

2
Hello Alexey,
yes from the node I can open z:\share\test in GUI mode and yes the same path ist set in network preferences on the client starting the process.
As long as the network process is running I can only open the project on the node in Read-Only, but it is not the case that cannot open the project file as mentioned in the error.


3
C:/Program Files/Agisoft/PhotoScan Pro/photoscan.exe --server -- control 192.168.0.1 --dispatch 192.168.0.1 --root Z:\share

C:/Program Files/Agisoft/PhotoScan Pro/photoscan.exe --node --dispatch 192.168.0.1 --root Z:\share

error message:
[192.168.0.5:54743] failed: Can't open project: Z:/share/test.psx

The folder under  Z:\ is hosted on a local WestenDigital MyCloud drive


Thanks for your help
Nils



4
all nodes and server running 1.3.2 Build 4205.

5
Hi,
currently I have exactly the same problem. I'am using also 1.3.2 for network processing and I get same error on the nodes can't open project file : Z:/...

I have no idea how to solve this problem...

Thanks

Nils

Pages: [1]