afp

Using watchdog of python to monitoring afp shared folder from linux

放肆的年华 提交于 2020-04-10 04:14:45
问题 I want linux machine(Raspberry pi) to monitor a shared folder by AFP(Apple file protocol, macbook is host). I can mount shared folder by mount_afp, and installed watchdog python library to monitor a shared folder. The problem is that watchdog can monitor only modifications from linux machine itself. If a monitoring folder has been modified by the host machine(Apple macbook) or other pc, linux machine couldn't find out the change. No logs came out. After I tested the same watchdog python file

How do I concatenate two AFP files together

徘徊边缘 提交于 2020-02-03 10:10:44
问题 I have two AFP files and I want to concatenate them together, how can I accomplish this. I have written java code to concatenate them, using BufferedInputStream and BufferedOutputStream and the result AFP is not correctly format. I even try to use linux cat but yield the same incorrect result. Please help. I dont think the problem is my java code, but I post the code below just in case. NOTE: One strange thing is that if I switch the order of the concatenation then it yield the right format

How do I concatenate two AFP files together

橙三吉。 提交于 2020-02-03 10:10:28
问题 I have two AFP files and I want to concatenate them together, how can I accomplish this. I have written java code to concatenate them, using BufferedInputStream and BufferedOutputStream and the result AFP is not correctly format. I even try to use linux cat but yield the same incorrect result. Please help. I dont think the problem is my java code, but I post the code below just in case. NOTE: One strange thing is that if I switch the order of the concatenation then it yield the right format

Determine AFP share from a file URL

一笑奈何 提交于 2019-12-12 10:00:06
问题 I writing an application to copy some files to a certain location. It allows the user to choose the destination, which is always on an AFP share. This is done with a NSOpenPanel. The URL that gets returned is: file://localhost/Volumes/Oliver%20Legg's%20Backup/ . What I want to accomplish is when the application is started, if the AFP share isn't mounted I want it to automatically mount it. What is the best way to do this? The Get Info command lists the server as: afp://Power Mac G5.

How to suppress / automatically dismiss error dialog in AppleScript

落花浮王杯 提交于 2019-12-06 07:49:44
问题 I have background process running as the logged on user that frequently tries to mount an AFP share to backup some data. If the share cannot be mounted this should just be ignored. In my script (bash, actually) I am mounting the share via an AppleScript mount volume snippet. In contrast to the mount or mount_afp commands, this appears to be the only way to automatically authenticate the user at the respective server with credentials from the Kerberos ticket or the user's keychain. In

Determine AFP share from a file URL

不想你离开。 提交于 2019-12-06 06:11:08
I writing an application to copy some files to a certain location. It allows the user to choose the destination, which is always on an AFP share. This is done with a NSOpenPanel. The URL that gets returned is: file://localhost/Volumes/Oliver%20Legg's%20Backup/ . What I want to accomplish is when the application is started, if the AFP share isn't mounted I want it to automatically mount it. What is the best way to do this? The Get Info command lists the server as: afp://Power Mac G5._afpovertcp.local/Oliver%20Legg's%20Backup . How can I programatically get this URL from a file URL? I think if I

How to suppress / automatically dismiss error dialog in AppleScript

試著忘記壹切 提交于 2019-12-04 14:02:20
I have background process running as the logged on user that frequently tries to mount an AFP share to backup some data. If the share cannot be mounted this should just be ignored. In my script (bash, actually) I am mounting the share via an AppleScript mount volume snippet. In contrast to the mount or mount_afp commands, this appears to be the only way to automatically authenticate the user at the respective server with credentials from the Kerberos ticket or the user's keychain. In particular, I do not want to have to store a password in the script: try mount volume "afp://server/share" on