erlug
[Top] [All Lists]

[Erlug] bash script

To: ERlug - Lista Pubblica <erlug@xxxxxxxxxxxxxx>
Subject: [Erlug] bash script
From: Federico Calboli <f.calboli@xxxxxxxxxxxxxx>
Date: Wed, 11 Jun 2008 10:39:31 +0100
Aloha,

ho da fare girare un programmello da bash un pacco di volte. Ho un file nomato 'script' con le istruzioni per sto programmello per ogni giro:

/opt/hapcluster-2.2.0/hapcluster -u -b 10000 -n 1000000 -t 1000 -s labch1 ch1pos ch1lab /opt/hapcluster-2.2.0/hapcluster -u -b 10000 -n 1000000 -t 1000 -s goldch1 ch1pos ch1gold /opt/hapcluster-2.2.0/hapcluster -u -b 10000 -n 1000000 -t 1000 -s xossch1 ch1pos ch1xoss /opt/hapcluster-2.2.0/hapcluster -u -b 10000 -n 1000000 -t 1000 -s gsdch1 ch1pos ch1gsd /opt/hapcluster-2.2.0/hapcluster -u -b 10000 -n 1000000 -t 1000 -s labch2 ch2pos ch2lab /opt/hapcluster-2.2.0/hapcluster -u -b 10000 -n 1000000 -t 1000 -s goldch2 ch2pos ch2gold /opt/hapcluster-2.2.0/hapcluster -u -b 10000 -n 1000000 -t 1000 -s xossch2 ch2pos ch2xoss /opt/hapcluster-2.2.0/hapcluster -u -b 10000 -n 1000000 -t 1000 -s gsdch2 ch2pos ch2gsd /opt/hapcluster-2.2.0/hapcluster -u -b 10000 -n 1000000 -t 1000 -s labch3 ch3pos ch3lab /opt/hapcluster-2.2.0/hapcluster -u -b 10000 -n 1000000 -t 1000 -s goldch3 ch3pos ch3gold /opt/hapcluster-2.2.0/hapcluster -u -b 10000 -n 1000000 -t 1000 -s xossch3 ch3pos ch3xoss /opt/hapcluster-2.2.0/hapcluster -u -b 10000 -n 1000000 -t 1000 -s gsdch3 ch3pos ch3gsd /opt/hapcluster-2.2.0/hapcluster -u -b 10000 -n 1000000 -t 1000 -s labch4 ch4pos ch4lab /opt/hapcluster-2.2.0/hapcluster -u -b 10000 -n 1000000 -t 1000 -s goldch4 ch4pos ch4gold
....

Se faccio copia/incolla in un terminal tende a cappellare i nomi dei file da manipolare e dunque non funge. Esiste un modo svelto per avere uno script che faccia:

#!/bin/bash
esegui tutte le istruzioni in 'script' e nun rompere le balle!

?

Fede

<Prev in Thread] Current Thread [Next in Thread>