Hi Guys,
I'm trying to batch archive about 30 vector files from a Location so I can
send them to another colleague. The whole location is too big to send, and
at any rate, he only needs the vectors for his work. I don't want to have to
tar each one individually. I've tried the following bash script, run from
the PERMANENT directory of my location:
for map in `g.mlist type=vect pattern='Opil??_ship_nav_track'`; do
tar cvf `basename $map.tar` $map ;
done
tar: Opil184a_ship_nav_track: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
tar: Opil185a_ship_nav_track: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
tar: Opil186a_ship_nav_track: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
tar: Opil186b_ship_nav_track: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
tar: Opil189a_ship_nav_track: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
tar: Opil189b_ship_nav_track: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
Can anyone see anything obviously wrong?
~ Eric.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Eric Patton
Technologist, Geo-Spatial Data Services
Geological Survey of Canada (Atlantic)
Natural Resources Canada
Bedford Institute of Oceanography
Dartmouth, Nova Scotia, Canada B2Y 4A2
Postal address: P.O. Box 1006
Courier address: 1 Challenger Drive
Telephone: (902)426-7732
Facsimile: (902)426-4104
E-mail: epatton@NRCan.gc.ca
On 11.01.2006, at 15:27, Patton, Eric wrote:
I've tried the following bash script, run from
the PERMANENT directory of my location:
for map in `g.mlist type=vect pattern='Opil??_ship_nav_track'`; do
tar cvf `basename $map.tar` $map ;
done
Can anyone see anything obviously wrong?
This approach can't work since there are no files with the name of $map in PERMANENT.
You need to descend to the folder 'vector'.
I'm not sure, though, if this is a succesful way to move the data sets at all.
I think it is better to export the vector data (like v.out.ascii) and tar the resulting output.
-flo.
you might be interested in this Grass add-on script:
http://www.gdf-hannover.de/dassau/g.laptop/g.laptop.sh
On ¶ro, 2006-01-11 at 10:27 -0400, Patton, Eric wrote:
Hi Guys,
I'm trying to batch archive about 30 vector files from a Location so I can
send them to another colleague. The whole location is too big to send, and
at any rate, he only needs the vectors for his work. I don't want to have to
tar each one individually. I've tried the following bash script, run from
the PERMANENT directory of my location:
for map in `g.mlist type=vect pattern='Opil??_ship_nav_track'`; do
tar cvf `basename $map.tar` $map ;
done
tar: Opil184a_ship_nav_track: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
tar: Opil185a_ship_nav_track: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
tar: Opil186a_ship_nav_track: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
tar: Opil186b_ship_nav_track: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
tar: Opil189a_ship_nav_track: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
tar: Opil189b_ship_nav_track: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
Can anyone see anything obviously wrong?
~ Eric.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Eric Patton
Technologist, Geo-Spatial Data Services
Geological Survey of Canada (Atlantic)
Natural Resources Canada
Bedford Institute of Oceanography
Dartmouth, Nova Scotia, Canada B2Y 4A2
Postal address: P.O. Box 1006
Courier address: 1 Challenger Drive
Telephone: (902)426-7732
Facsimile: (902)426-4104
E-mail: epatton@NRCan.gc.ca
--------------------
Szukasz do¶wiadczonej firmy poligraficznej? Zale¿y Ci na terminowo¶ci i atrakcyjnych cenach?
Zapraszamy do nas!
http://www.foldruk.pl/