In Windows or Linux, it's very often we redirect console output to a file as below:
Windows:
dir > text
Linux:
ls -l > text
I wonder how to do the similar thing in VxWorks shell.
I changed "0x102" in "saveFd = open("myfile.txt",0x102, 0777 )" into "0x202", then it works. All console display was redirected into "myfile.txt". In previous post, I got a mistake. I thought it hung after "ioGlobalStdSet(1, saveFd)". It's not hung, but redirecting all display into "myfile.txt" and I used "CTL-C" to stop the redirection.