[GRASS-user] d.monsize doesn't work in 6.3

Philipp Steigenberger oopopanaxx at yahoo.de
Wed Jan 16 10:55:08 EST 2008


I have no idea why the script d.monsize doesn't work well, but I found a (better) solution for my
script:

**********************************
#!/bin/sh

GRASS_WIDTH=600
GRASS_HEIGHT=1200
export GRASS_WIDTH
export GRASS_HEIGHT


echo "Which Monitor (number only)?"
read mon

start=1

# shutdown or start x$mon  at specified size

mlist=`d.mon -L | grep "  running" | awk '{print $1}'`
#echo $mlist
for m in $mlist ; do
#echo $m
if [ $m = x$mon ] ; then
  d.mon stop=$m
  start=0
fi
done
if [ $start = "1" ] ; then d.mon start=x$mon

fi
exit
********************************************

cheers
Philipp


--- Tach <oopopanaxx at yahoo.de> schrieb:

> Hello, Hallo and Hola,
> in GRASS 6.2.3 I was using a nice script which
> connects d.start/d.stop and d.monsize to open monitors
> in a given size or closes them if one is open.
> In university I'm using 6.3 and there the d.monsize
> doesn't work.
> I get the message:
> 
> execl() failed: Exec format error
> 
> How can I fix this?
> 
> cheers
> Philipp
> 
> enclosed the scrip "m"
> 
> #!/bin/sh
> echo Which Monitor?
> read a
> 
> start=1
> # shutdown or start x$a  at specified size
> 
> mlist=`d.mon -L | grep "  running" | awk '{print $1}'`
> #echo $mlist
> for m in $mlist ; do
> #echo $m
> if [ $m = x$a ] ; then
>   d.mon stop=$m
>   start=0
> fi
> done
> if [ $start = "1" ] ; then d.mon start=x$a
>   echo width=414
>   w=414
>   echo height=942
>   h=942
>   d.monsize setmonitor=x$a setwidth=$w setheight=$h
> 
> fi
> exit
> 
> 
> 
>       Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
> 



       __________________________________ Ihr erstes Fernweh? Wo gibt es den schönsten Strand? www.yahoo.de/clever


More information about the grass-user mailing list