0

I am creating an application just like terminal. For that i want to display the MOTD msg as its dispalyed in terminal on launch. How to get this msg in objective C / Swift.

Couldnt find a soultion for this in net. etc/motd file is not present in the system.

Thanks.

Angel
  • 112
  • 15

1 Answers1

0

Per my knowledge the motd messages are generated by a bash script at /etc/motd.

So you basically need to execute the script either by Objective-C or Swift and grab the output

deimus
  • 9,565
  • 12
  • 63
  • 107