Redirection does work, I uploaded a script that ran dmesg and a bunch of other commands in another thread. One thing to watch out for is filesystem write caching... In the emulator especially make sure to throw a 'sync' command in at the end or the writes never reach disk.

Also, remember that most standard commands are busybox not the normal unix variants... I'm not sure if mkdir supports -p for example... If you use the emulator you can ssh in and run your script and get useful feedback

Redirection does work, I uploaded a script that ran dmesg and a bunch of other commands in another thread. One thing to watch out for is filesystem write caching... In the emulator especially make sure to throw a 'sync' command in at the end or the writes never reach disk.

Also, remember that most standard commands are busybox not the normal unix variants... I'm not sure if mkdir supports -p for example... If you use the emulator you can ssh in and run your script and get useful feedback

See the > char here? that redirects previous command (ls, list files, similar to dir command on MSDOS) output to a file.

Another example could be:

Code:

ls -al / > /media/mmcblk0p1/System/.test/output.txt 2>&1

that redirects both standard output and standard error to the file.

But note that if the destination file is inside a hidden directory (one that starts with a dot, as .test) you won't be able to navigate into it with the DR800, as the device don't show those folders.
Read the second message for other alternatives.