Chq Posted July 12, 2021 Share Posted July 12, 2021 Hi, always when i want to upload a backup of a sd-card (.zip-File), Dropbox has problems with permissions. The support adviced me to close Dropbox and then type the following rows in the terminal: sudo chflags -R nouchg ~/Dropbox ~/.dropbox ~/.dropbox-master sudo chown "$USER" "$HOME" sudo chown -R "$USER" ~/Dropbox ~/.dropbox sudo chmod -RN ~/.dropbox ~/Dropbox chmod -R u+rw ~/Dropbox ~/.dropbox Some of these rows take time to finish. Is it possible, that Alfred gets feedback from terminal, when the next prompt is ready? Greetz Chris Link to comment
deanishe Posted July 12, 2021 Share Posted July 12, 2021 1 hour ago, Chq said: Is it possible, that Alfred gets feedback from terminal No. The Terminal/iTerm API is one-way. There's no provision for telling the caller what happened. What you need to do is rewrite your script so it's a valid single command: sudo chflags -R nouchg ~/Dropbox ~/.dropbox ~/.dropbox-master \ && sudo chown "$USER" "$HOME" \ && sudo chown -R "$USER" ~/Dropbox ~/.dropbox \ && sudo chmod -RN ~/.dropbox ~/Dropbox \ && chmod -R u+rw ~/Dropbox ~/.dropbox Link to comment
Chq Posted July 12, 2021 Author Share Posted July 12, 2021 (edited) Hey, thank you. Oh, i forgot, that i have to type in my password after some of these lines, too. I think, i will solve it still by hand, line for line.. 😔 Greetz Chris Edited July 12, 2021 by Chq Link to comment
deanishe Posted July 12, 2021 Share Posted July 12, 2021 4 hours ago, Chq said: Oh, i forgot, that i have to type in my password after some of these lines, too. That’s obvious from the sudo. If you combine the commands as above, it should only ask for your password once. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now