<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE>@font-face {
        font-family: Verdana;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 70.85pt 3.0cm 70.85pt 3.0cm; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
H3 {
        FONT-WEIGHT: normal; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify; TEXT-DECORATION: underline
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=PT vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>Dirty approach,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>I used this approach when doing mass imports of files and
only had slight variations.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>under linux (shoudl work too in cygwin, dos batch would
achieve the same thing)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>I created a script file (executable text Basicaly) that for
you would look like</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2># for a script named runme.sh</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>#(what ever header you need for your
shell)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006></SPAN><SPAN
class=468230416-03082006>#!/bin/sh</DIV></SPAN>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>v.in.asci (string of settings);</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>g.region (string of settings);</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>v.surf.rst (string of settings);</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>nviz (string of settings);</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>#end of script</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>then at the $prompt you need to make the file
executable</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>$chmod 777 runme.sh</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>then at the $prompt inside a GRASS session you can run the
file</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>$./runme.sh</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>boom!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>notice in the script that each line ends in a ;
(semi-colon) this separates each command</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>Note also that sometimes options need to be in
quotes</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>eg</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>v.in.ascii option1="settings string that may contain escape
characters or spaces";</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2>Alternatively you can capture what you enter at the CLI
using </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468230416-03082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT><BR> </DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> grassuser-bounces@grass.itc.it
[mailto:grassuser-bounces@grass.itc.it] <B>On Behalf Of </B>Tiago
Salgueiro<BR><B>Sent:</B> August 3, 2006 11:24<BR><B>To:</B>
grassuser@grass.itc.it<BR><B>Subject:</B> [GRASS-user] run commands sequentially
- help please<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<H3><A name=_Toc119731566><U><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">Hi all</SPAN></FONT></U></A><SPAN
style="TEXT-DECORATION: none">,</SPAN></H3>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">First of all you should know that
I’m a beginner using GRASS.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I want to create a 3D map from a
text file with coordinates. I think the commands I will need are the
following:</SPAN></FONT></P>
<H3><FONT face="Times New Roman" size=3><SPAN lang=EN-GB
style="FONT-SIZE: 12pt; TEXT-DECORATION: none"></SPAN></FONT> </H3>
<H3><FONT face="Times New Roman" size=3><SPAN lang=EN-GB
style="FONT-SIZE: 12pt; TEXT-DECORATION: none">1 - v.in.ascii</SPAN></FONT></H3>
<H3><A name=_Toc119731567><FONT face="Times New Roman" size=3><SPAN lang=EN-GB
style="FONT-SIZE: 12pt; TEXT-DECORATION: none">2 -
g.region</SPAN></FONT></A></H3>
<H3><A name=_Toc119731569><FONT face="Times New Roman" size=3><SPAN lang=EN-GB
style="FONT-SIZE: 12pt; TEXT-DECORATION: none">3 -
v.surf.rst</SPAN></FONT></A></H3>
<H3><A name=_Toc119731571><FONT face="Times New Roman" size=3><SPAN lang=EN-GB
style="FONT-SIZE: 12pt; TEXT-DECORATION: none">4 – nviz</SPAN></FONT></A></H3>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">But I don’t want to write the
commands every time I want to see a map. So I desire to do this sequentially.
How can I do that? This way I’ll only need to run one command and the map
happens.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks for your
help.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><B><U><FONT face=Verdana color=navy size=2><SPAN lang=EN-GB
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Verdana">Cumprimentos/Best
Regards,</SPAN></FONT></U></B></P>
<P class=MsoNormal><B><FONT face=Verdana color=navy size=3><SPAN lang=EN-GB
style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: Verdana"></SPAN></FONT></B> </P>
<P class=MsoNormal><B><FONT face=Verdana color=navy size=2><SPAN lang=EN-GB
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Verdana">Tiago
Salgueiro</SPAN></FONT></B></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-GB
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV></BODY></HTML>