joshdick / pytograph Goto Github PK
View Code? Open in Web Editor NEWReflect local filesystem changes on a remote system in real time, automatically.
License: Other
Reflect local filesystem changes on a remote system in real time, automatically.
License: Other
/usr/local/pytograph/pytograph -c /usr/local/pytograph/pytograph.cfg
works fine on the command line, but in launchd I get:
INFO: Path mapping initializing:
Changes at local path
/Users/luomat/Dropbox/Public/Dreamhost/f.luo.ma
will be reflected at remote path
[email protected]:/home/luomat/f.luo.ma
INFO: Path mapping initializing:
Changes at local path
/Users/luomat/Dropbox/Public/Dreamhost/images.luo.ma
will be reflected at remote path
[email protected]:/home/luomat/images.luo.ma
INFO: Path mapping initializing:
Changes at local path
/Users/luomat/Dropbox/Public/Dreamhost/notes.luo.ma
will be reflected at remote path
[email protected]:/home/luomat/notes.luo.ma
Traceback (most recent call last):
File "/usr/local/pytograph/pytograph", line 248, in <module>
File "/usr/local/pytograph/pytograph", line 230, in _main
File "/Library/Python/2.7/site-packages/watchdog/observers/api.py", line 357, in schedule
File "/Library/Python/2.7/site-packages/watchdog/observers/kqueue.py", line 445, in __init__
IOError: [Errno 24] Too many open files
here's my 'com.tjluoma.pytograph.plist' file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AbandonProcessGroup</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.tjluoma.pytograph</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/pytograph/pytograph</string>
<string>--config-file</string>
<string>/usr/local/pytograph/pytograph.cfg</string>
</array>
<key>StandardErrorPath</key>
<string>/Users/luomat/Library/Logs/pytograph.log</string>
<key>StandardOutPath</key>
<string>/Users/luomat/Library/Logs/pytograph.log</string>
</dict>
</plist>
Any ideas why it fails in launchd? Seems like that would be an ideal way to run it.
Hi, i'm attempting to test this on Windows. I cannot get the help to work from the command line. That said, my intent is to use this to sync a folder from my local machine to a network shared folder. Any assistance would be appreciated.
Mike
I'm trying to use this but it gives me an error about a bad DSA key. I have multiple keys for identification in different servers and this was never an issue except for pysftp it seems (even I created my own DSA pair). I went to your script and using the pysftp.Connection(host, username = username,private_key ="blah/blah/key") I made it work so I was hopping you could add this parameter to the config file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.