Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

finish.command not working #2080

Open
emk2203 opened this issue Jan 7, 2025 · 2 comments
Open

finish.command not working #2080

emk2203 opened this issue Jan 7, 2025 · 2 comments

Comments

@emk2203
Copy link

emk2203 commented Jan 7, 2025

  • Ripme version: 2.1.16-4-02372e85
  • Java version: openjdk 23 2024-09-17
  • Operating system: Arch Linux updated 2025-01-07
  • Exact URL you were trying to rip when the problem occurred: n/a
  • Please include any additional information about how to reproduce the problem:

command from finish.command runs without issues from command line after executing ripme.
enable.finish.command is set to true in ~/.config/ripme/rip.properties.
finish.command = cd /home/emk2203/rips; find * -type d -exec 7z a -t7z -sdel {}.cbz {}/* ; && rmdir * 2> /dev/null; cd - is set in rip.properties.

Expected Behavior

After ripping all given URLs, command should run and compress everything ripped to a CBZ archive, then delete the empty directories

Actual Behavior

Error message:

10:53:13.297 [AWT-EventQueue-0] ERROR com.rarchives.ripme.ui.MainWindow - Was unable to run command "cd /home/emk2203/rips; find * -type d -exec 7z a -t7z -sdel {}.cbz {}/* ; && rmdir * 2> /dev/null; cd -
10:53:13.298 [AWT-EventQueue-0] ERROR com.rarchives.ripme.ui.MainWindow - [Ljava.lang.StackTraceElement;@7e7fdc52

Absence of closing quotes in first error log message; finish.command doesn't work even if command is put in quotes in the config file.

@metaprime
Copy link
Contributor

Does it work if you write the command as sh -c "<command>"?

@emk2203
Copy link
Author

emk2203 commented Jan 8, 2025

No. When I try this, I get the error messages

08:05:19.991 [AWT-EventQueue-0] INFO  com.rarchives.ripme.ui.MainWindow - RUnning command [Ljava.lang.String;@750a6002
08:05:20.002 [AWT-EventQueue-0] INFO  com.rarchives.ripme.ui.MainWindow - Command output:

08:05:20.002 [AWT-EventQueue-0] ERROR com.rarchives.ripme.ui.MainWindow - Command error:

/home/emk2203/rips;: -c: Zeile 1: Dateiende beim Suchen nach »"« erreicht.

End of file reached at the search for "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants