Printing no of occurannces - I am getting the right output but unit test not passed

log file errer:

ERROR /mail2shakthivel98-ME_QBOX-e4410d10-48ec-11ea-8781-49a26c6dae8d/execution_dir/ returncode > 0! Check your code

Hey, need to print a single integer value for the number of occurrences for “230 Login successful”.


  1. make sure sure your are grabbing the line.
  2. Also, make sure you are calculating the “word count” for the that line.

Good Luck :slight_smile:

1 Like

Hey, please don’t share answers here at the forum. So i’m deleting this.

Also, Please be patient while i review your code.

okay sure!

I thought only code shouldn’t be shared

You can provide the path in your command to locate the file “vsftpd1.log”.

We should be writing commands not with respect to our directory structure. But also to other “crio-user’s” directory structure. Then only will it give the correct answer and also pass the test cases.

Good Luck :slight_smile: