W wl Well-Known Member Licensed User Longtime User Apr 15, 2017 #1 Hi, I'm trying to write a checkpassword Java console app for Dovecot. I found that in a bash script I should read data from file descriptor 3 (eg: 1 2 read-d$'\0'-r-u3USER read-d$'\0'-r-u3PASS ) I'm know on how to read from stdin (reader.Initialize (sys.getField('in")), but how to read from FD 3 ? Thanks
Hi, I'm trying to write a checkpassword Java console app for Dovecot. I found that in a bash script I should read data from file descriptor 3 (eg: 1 2 read-d$'\0'-r-u3USER read-d$'\0'-r-u3PASS ) I'm know on how to read from stdin (reader.Initialize (sys.getField('in")), but how to read from FD 3 ? Thanks
W wl Well-Known Member Licensed User Longtime User Apr 15, 2017 #2 Ok, guess I found it ? B4X: reader.Initialize(File.OpenInput("/dev/fd/", "3")) Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 16, 2017 #3 See this: https://www.b4x.com/android/forum/threads/non-ui-applications.34657/#post-207735 Upvote 0
W wl Well-Known Member Licensed User Longtime User Apr 16, 2017 #4 Thanks Erel, I was aware of this example but this reads from STDIN (FD 0 if I'm not wrong). I needed to read from FD 3 Upvote 0
Thanks Erel, I was aware of this example but this reads from STDIN (FD 0 if I'm not wrong). I needed to read from FD 3