rsync (а также другие команды) запускается с помощью nohup gets sigterm

Вы можете ознакомиться с этим проектом Playmemories Alternative . Один выдающийся разработчик реконструировал -проприетарные части модифицированного протокола PTP/IP Sony и сумел заставить его работать с помощью комбинации пользовательского скрипта Python и GPhoto2 .

The way Sony transfers pictures is via PTP/IP (Picture Transfer Protocol over Internet Protocol). The moment you enable the 'Send to Computer' option from the Camera it starts broadcasting UPNP UDP packets across the network to multicast address (239.255.255.250:1900). This is also known as Simple Service Discovery Protocol (SSDP). At the same time the camera starts up A PTP/IP server on port 15740. The UPNP packets contain all the connection details. The Playmemories app (or sony-pm-alt.py) see these packets and then turn around an hit the PTP/IP servers and transfer the pictures.

Sony requires some non-standard packets to display the 'Sending...' on the camera. This also goes for the automatic shut down feature when done. Without this you have about 2 minutes to transfer the picture before the camera stops and you have no confirmation that it worked. Also, the camera will remain on so you can't walk away or else your battery will continue to drain. I was hoping there would be one magic packet to turn these options on, but this doesn't seem to be the case. Doing a series of tcpdumps I was able to determine what packets make it work. I started off with over a 100 packets being needed and have finally narrowed it down to 23 packets (update: 4 packets to start and 3 packets to end). I was also hoping I could send these packets directly from python using a different tcp session than gphoto, but no luck. So, I ended up really hacking up the libgphoto code to make this work. The developer of libgphoto was then kind enough to work with me and incorporate changes to make things work without the hacking.

Я не проверял это сам, но похоже, что @falk0069 выполнил работу йомена, предоставив отправную точку для подключения к камерам Sony с поддержкой Wi-Fi -.

0
01.10.2019, 10:28
1 ответ

Давненько я не работал над HP/UX, но ssh все еще должен иметь параметр ServerAliveInterval. Поэтому добавьте «-o ServerAliveInterval=60» после ssh в вашей команде. Или этот параметр можно сделать постоянным в.ssh/config или добавить в системный файл конфигурации ssh.

РЕДАКТИРОВАТЬ

В HP/UX это называется по-другому. Я нашел некоторую документацию.

https://support.hpe.com/hpsc/doc/public/display?docId=c01892997

Следующие параметры, указанные в конфигурации /etc/opt/ssh/sshd _, позволяют установить желаемый период бездействия, разрешенный до завершения сеанса.

ClientAliveInterval 300
ClientAliveCountMax 6

В приведенном выше примере клиентское сообщение будет отправляться каждые пять минут (300 секунд )и максимум шесть попыток. Через 30 минут после того, как -клиент не отвечает, клиент будет отключен.

Значение ClientAliveInterval по умолчанию, равное 0, гарантирует, что этот активный интервал отключен по умолчанию.

0
28.01.2020, 03:13

Теги

Похожие вопросы