Question: Write a simple bash script that functions a network bot server. Everything the user types must be echoed back, unless it is one of the

Write a simple bash script that functions a network bot server. Everything the user types must be echoed back, unless it is one of the reserved commands. Your bot must support:

HELLO: Says 'Hi there! The time is '

QUIT: Says goodbye and tries to disconnect (might not be successful; ncat is picky)

WHO: lets us know who else is online on the server.

Hints:

Use ncat

Listen on a port specified by the user, but default to a reasonable port number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!