Thread: EAB File Server
View Single Post
Old 30 October 2017, 12:29   #1569
old bearded fool

modrobert's Avatar
Join Date: Jan 2010
Location: Bangkok
Age: 52
Posts: 520
Originally Posted by Turran View Post
I dont think we understand each other. If the user "Turbo" tries to add an EAB FTP account, he is going to be denied because is going to report
print("* Found more than one user: " + username), when he indeed has a valid EAB Forums account.
This is because there are three other usernames also containing "Turbo" (RobTurbo, Turbo2Xs & TurboCrash).
No, it will report "User not found" and "exit 1", same as if the name was incorrect, in my previous edited post.

We have no way to get the postcount from the user "Turbo" using the existing script, therefor he can not create an FTP account, even though he is a valid user (Well, he does not exist right now. Its just an example).
If user "Turbo" gives more than one hit he is not a valid EAB forum user, or he entered the user name incomplete, my previous Bourne shell example handles this correctly using the exit/result code (-ne 0 / != 0).

Perhaps you posted your reply while I was editing my previous post to add another example?

Last edited by modrobert; 30 October 2017 at 12:51.
modrobert is offline  
Page generated in 0.04062 seconds with 11 queries