Look at the code I posted above that simulates a poor command shell.......(Its in C++, but I got confused about what board I was on )
Now to get he time....there are a few ways and funcs......but this is a start...
Code:
struct tm *thetime;
time_t mytime;
time( &mytime ); //system time count
thetime = localtime( &mytime ); //convert it to local time
printf("%s",asctime(thetime)); //convert into a nice string and print
To use it you need the <time.h>
Now for custom unix commands.....well....
Code:
if(!strcmp("ls",typed)) {system("dir");}
else if(!strcmp("whatever *nix command",typed)) {system("whatever it is in dos");}
Well its a few ideas anyway