Welcome, Guest. Please login or register.

Author Topic: lha return codes  (Read 4391 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Tenacious

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show all replies
Re: lha return codes
« on: February 07, 2015, 03:37:28 AM »
In AmigaDos, a return code of 20 means a command failed and was aborted.  4-3 of "AmigaDOS" manual.

Are you working from a cli or shell?

Jeepers, Mike never sleeps!  ;)
 

Offline Tenacious

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show all replies
Re: lha return codes
« Reply #1 on: February 07, 2015, 04:15:59 AM »
Quote from: orange;783236
lha fails on some archives only, executing script, with code 10 or 20.
seems that 20 happens when filename contains nonstandard-ASCII char. but what is 10?
strangely, with error 10, it fails only in script.
thanks.


10 is a script failure.  The codes are not clearly defined in the manual.  Do you have a manual?  Can you list the script here?
 

Offline Tenacious

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show all replies
Re: lha return codes
« Reply #2 on: February 07, 2015, 05:16:27 AM »
Quote from: orange;783239
"
er, didn't know there was difference between cli and shell, think this is from cli.

edit: it seems there's a problem in filename. it says "Unable to open output file". is there a way to use utf-8 in cli?

WOW! That's definitely more sophisticated than the way I unarchive stuff (I simply use a menu button in my favorite dir utilities).  Clearly, I'm out of my depth, but interested.  Did you write this script, and if so, what is the intent behind the intricacy?  How do you substitute the name of the archive you are extracting?  It's great to see how others do things.  ;)

I asked about the cli or shell to find out if you were fat-fingering a command each time.
 

Offline Tenacious

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show all replies
Re: lha return codes
« Reply #3 on: February 07, 2015, 05:22:48 AM »
IIRC, my 'button' unarchives a selected file.lha to my RAM DISK: and gives it a name (output file) and directory structure that the archive dictates.
 I probably don't understand what you're doing.
« Last Edit: February 07, 2015, 05:26:30 AM by Tenacious »
 

Offline Tenacious

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show all replies
Re: lha return codes
« Reply #4 on: February 07, 2015, 04:57:47 PM »
Like many here, you're operating beyond my simple user status.  :)

@ motrucker  Thanks for the link.  I'll check it out, too.
« Last Edit: February 07, 2015, 05:00:27 PM by Tenacious »
 

Offline Tenacious

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show all replies
Re: lha return codes
« Reply #5 on: February 07, 2015, 05:29:55 PM »
That's a very impressive repository, even Rob Peck's "The Amiga Companion" is there!