To rewrite that in script form: true && ( set -x ls -la ~/Desktop ) >& output.txt
The advantage of putting the ls command in this script wrapper is that the only thing the questioner has to post is the contents of the output.txt file. With the contents we can all verify that the command was correctly entered. That's what the 'set -x' does. In addition, we see its output along with any error messages. That's what the "(...) >&" construct does, grouping all the commands into a single output stream. The "true &&" is there so that the opening parenthesis is more visible. So with this wrapper we can view exactly what was done and how, as there's always a chance that the command was incorrectly typed (e.g. ls -1a) It also provides us with a means to see if the questioner can follow instructions. If they can type in a few lines of a script and send us the output file, then there is a good chance of successfully resolving the issue. If not, well, that's a different issue. Regards, - Robert On Mon, Dec 14, 2009 at 11:18 AM, William A Morita <[email protected]> wrote: > How about an "ls -la ~/Desktop" for us to look at ? > > - Bill Morita _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
