Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
25 user(s) are online (15 user(s) are browsing Forums)

Members: 0
Guests: 25

more...

Support us!

Headlines

 
  Register To Post  

SystemTags with non-existing command
Just can't stay away
Just can't stay away


See User information
Is it normal that SystemTags() returns 0 even when command couldn't be found? I was relying it to return -1 rather. Maybe I need to try Lock() before?

Go to top
Re: SystemTags with non-existing command
Just can't stay away
Just can't stay away


See User information
@Capehill
Are you using SYS_Asynch,TRUE or SYS_Asynch,FALSE?

Go to top
Re: SystemTags with non-existing command
Just can't stay away
Just can't stay away


See User information
@joerg

SYS_Asynch, TRUE.

Go to top
Re: SystemTags with non-existing command
Just can't stay away
Just can't stay away


See User information
@Capehill
Quote:
SYS_Asynch, TRUE.
From https://wiki.amigaos.net/amiga/autodocs/dos.doc.txt dos.library/SystemTagList
RESULT
    error 
-- for success.

        
Depending on the mode usedthe value returned can mean
        different things
.

        
SYS_Asynch,TRUE:
                 -
indicates System() failure.
                  
indicates System() success

        
SYS_Asynch,FALSE:
                 -
indicates System() failure.
                  
non-zero  program error.
                  
indicates program success.
Since SYS_Asynch, TRUE obviously can't wait for the completion of the program/command to be executed, which is only possible with SYS_Asynch, FALSE, it can't return any error/return code of the program/command to be executed, it can only return success/failure if starting the async shell process, which should load that program/command, worked (0) or not (-1, usual reason: out of memory).
Independent of any errors which may happen in that async process, incl. failure of the async shell loading the program/command.

Just a wild guess, but maybe using SYS_Asynch,FALSE with
"run <>NIL: command"
could help and return more usable return/error codes.

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project