Keka
Keka copied to clipboard
How can i unrar password protected .rar file using Terminal
hello, How can i unrar password protected .rar file using Terminal like that :
./Keka --client unrar e /Users/alf/player.rar /Users/alf/Extract
the file has password, try using -P switch but dont'n work
Try:
./Keka --cli unrar e -p"YOURPASSWORD" /Users/alf/player.rar /Users/alf/Extract
Thanks Sir aonez
Hello mr aonez I’m sorry to bother you, but I have problems to execute ./Keka --cli unrar e -p"YOURPASSWORD" /Users/alf/player.rar /Users/alf/Extract
from my home directory, the command work fine from keka app directory, but from my home it doesn’t
Can you help me please
Alfredo
You can always call it like this:
/Applications/Keka.app/Contents/MacOS/Keka --cli ...
You could also export the Keka path so you can call it just like Keka --cli
:
echo export PATH=/Applications/Keka.app/Contents/MacOS:\$PATH >> ~/.bashrc
Thanks mr aonez, the second solution is perfect for me, I will try it
Thank you very much
hello sr aonez, thanks for your help, i have another question, what happen if my password include special character for example if my password is "}"Kk&i*8PH-399S{YAj{}=XJEWh:AK$7Nr]yWE)_"
keka fails processing command, with the following error
Total errors: 3
sh: -c: line 0: unexpected EOF while looking for matching ``'
sh: -c: line 1: syntax error: unexpected end of file
sh: -c: line 0: syntax error near unexpected token )' sh: -c: line 0:
/Applications/Keka.app/Contents/MacOS/keka --cli unrar e
-p"}"Kk&i*8PH-399S{YAj{}=XJEWh:AK$7Nr]yWE)_"
/Users/alfredoescalona/Documents/ProbExt/Desktop.rar
/Users/alfredoescalona/Documents/ProbExt/Extract'
How can I solve this problem?
thanks for your patience
mr aone have a good day, is it possible to use \ as escaping character ? to tell keka that these two strings are the same : ?
"}"Kk&i*8PH-399S{YAj{}=XJEWh:AK$7Nr]yWE)_"
"}"Kk&i*8PH-399S{YAj{}=XJEWh:AK$7Nr]yWE)_"
????????????
thanks for your help
Indeed @AlfredoEscalona, you should escape that "
. This is not Keka that's failing but that line that is broken.
In that phrase you should escape "
and $
. You could also use simple quote '
and no escape will be needed in this case.
So:
/Applications/Keka.app/Contents/MacOS/keka --cli unrar e -p"}\"Kk&i*8PH-399S{YAj{}=XJEWh:AK\$7Nr]yWE)_"
Or:
/Applications/Keka.app/Contents/MacOS/keka --cli unrar e -p'}"Kk&i*8PH-399S{YAj{}=XJEWh:AK$7Nr]yWE)_'
Please i need some help
hello sir
i'm running this command
/keka --cli unrar e -p”CBGzOPuZ1C%ufu3Qx9%v?(A{MFuDlVUv8Hx” /Users/alfredoescalona/Documents/ProbExt/Desktop.rar /Users/alfredoescalona/Documents/ProbExt/Extract
and my shell return this
zsh: no matches found: -p”CBGzOPuZ1C%ufu3Qx9%v?(A{MFuDlVUv8Hx”
How can I solve this problem?
😐
El mié, 5 ene 2022 a las 9:32, aONe @.***>) escribió:
Indeed @AlfredoEscalona https://github.com/AlfredoEscalona, you should scape that ". This is not Keka that's failing but the command line that does not understand that line.
In that phrase you should scape " and $.
So:
/Applications/Keka.app/Contents/MacOS/keka --cli unrar e -p"}"Kk&i*8PH-399S{YAj{}=XJEWh:AK$7Nr]yWE)_"
— Reply to this email directly, view it on GitHub https://github.com/aonez/Keka/issues/998#issuecomment-1005735883, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP57OWWLJ26KGHR7DKHFUH3UURI7DANCNFSM5KW4YYGQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
Use simple quote instead, you will have less trouble, as stated here:
https://github.com/aonez/Keka/issues/998#issuecomment-1005735883
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.