[Gambas-user] Exec just returns 0 lines when cat cannot read

PICCORO McKAY Lenz mckaygerhard at gmail.com
Mon Nov 16 16:01:58 CET 2020


i have this code:

 rcfilepath =  "/etc/authdaemonrc"
 If Not Exist(rcfilepath) Then
        Error "rc file not found "
        Quit
 Endif

the following line returns no error if file cannot be read:

 Exec ["cat", rcfilepath] To sLine

just offers 0 lines.. using gambas 3.10 and 3.12 .. this is normal? using
"cat /path/file" returns error

*is there's a way to check if execution was susessfull¡?*

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201116/c7d24f6d/attachment.htm>


More information about the User mailing list