Hi Milton,

If your script is in bash (using MSys Console), check out the tee
command and > (grater then sign). With those you can redirect output
to a file so
ls *.tif > lista_tif.txt
will create a file lista_tif.txt with the output from the command ls *.tif

If you want to append something to the file use 2 >, that is
ls *.tif >> lista_tif.txt
will put the ls command output to the end of the already created file

Cheers
Daniel

On Thu, Nov 6, 2008 at 12:32 PM, Milton Cezar Ribeiro
<[EMAIL PROTECTED]> wrote:
> Dear ALL,
> I am running a script on native WinGRASS.
> I would like to save a log of all processing steps and system comments.
> How can I direct the log to an external file? I would like to include on
> the script the starting time/date and finishing time/date. Any help are
> welcome.
> Best regards
> miltinho astronauta
> brazil
> _______________________________________________
> grass-user mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to