On Monday 15 July 2013 21:15:27 Mark Miesfeld wrote:
> Okay, you seem to be on the right track.
>
> When you use sysGetErrno() after your sysAccess() fails, does it seem to
> make sense? I haven't used this package, it could have a bug.
>
> --
> Mark Miesfeld
I wrote this little quicky:
#!/usr/bin/rexx
parse arg mode filename
if sysaccess(filename,mode) < 0 then
do
errno = sysgeterrno()
errmsg = sysgeterrnomsg(errno)
say errno errmsg
end
exit
::requires 'rxunixsys' library
It seems not to matter what I provide for the mode or filename:
23:16:30,leslie@pinto
~/bin/rexx/gtk
$sysaccess 220 /mnt/3
22 Unknown
23:18:31,leslie@pinto
~/bin/rexx/gtk
$sysaccess 220 ~
22 Unknown
23:18:37,leslie@pinto
~/bin/rexx/gtk
$sysaccess 22 ~
22 Unknown
23:18:45,leslie@pinto
~/bin/rexx/gtk
$sysaccess 2 ~
23:18:54,leslie@pinto
~/bin/rexx/gtk
$sysaccess 777 ~
22 Unknown
Everything comes back as Unknown. (?)
Leslie
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users