// exec this file with a semicolon like exec ExecMe.sce;
// If you see this line on your print out, then you have printed the
// wrong file.
// You are suppose to exec this file and print out the
// file named PrintMe.txt
lines(0);
myName = input("\n\nType your full name >","s");
diary('PrintMe.txt'); // Starts writing the file PrintMe.txt
printf("Student: %s\n", myName);
[os, ver] = getos() // data about your operation system
[ver,opts] = getversion() // data about your scilab
// removed in 5.2 TCL_GetVersion // more data
%eps // machine epsilon (smallest float)
pwd // the current filesystem location
date // todays date 
dt = getdate();
mprintf("The time is %d:%d:%d and %d milliseconds\n",dt(7),dt(8),dt(9),dt(10)); 
day = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
mprintf("Today is a %s\n",day(dt(5))); 
unix_w("hostname"); // your machine name
diary(0); // Flushs the output to finish writing PrintMe.txt
printf("\n\n\n\t\tNow print PrintMe.txt\n");
