Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Bash scripting] Ma cos'è il ".deballing"?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Jacco
n00b
n00b


Joined: 24 Aug 2004
Posts: 23
Location: Treviso, Italy

PostPosted: Tue Sep 07, 2004 7:03 am    Post subject: [Bash scripting] Ma cos'è il ".deballing"? Reply with quote

Spero di non essere troppo OT :roll:
Sto terminando un rozzissimo script bash per l'installazione di alcuni pacchetti Unix attraverso dpkg-deb... ma dopo aver installato con successo XFree86 (da binari) e dopo aver compilato, sempre con successo, Perl, mi si impianta proprio nella fase più calda :lol: ossia quella nella quale dovrebbe usare il comando dpkg-deb per installare i pacchetti al loro posto... Ecco come è fatto lo script nel punto in questione
Code:
echo 'Now, we can finally install applications and configuration files'
cd $INSTALLATION_PATH/Tevax_debs
for packages in ${Apps_Tevax[*]}
   do
   echo Installing $packages
   dpkg-deb -x $packages.deb /
   done

Il risultato che ottengo è il seguente
Code:
.deb': No such file or directory `tar_1.14-1
ovviamente per ogni pacchetto da installare.

Allora ho provato a modificare lo script togliendo la riga di dpkg e lasciando la riga do echo, aggiungendo .deb alla fine del comando:
Code:
for packages in ${Apps_Tevax[*]}
   do
   echo Installing $packages.deb
   done

Ottengo un risultato stranissimo 8O
Code:

.deballing dlcompat_20030629-15.deb
.deballing glib-shlibs_1.2.10-18.deb
.deballing audiofile_0.2.3-4.deb
.deballing bluefish_0.12-13.deb
.deballing imlib-shlibs_1.9.14-14.deb
Eccetera.... Eccetera....
Ma da dove salta fuori quel .deballing???
Cosa ho sbagliato?
_________________
"The back of macs is better than any front of pc's"
Phil Schiller
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Tue Sep 07, 2004 7:08 am    Post subject: Reply with quote

In tanto mi fai il piacere di mettere le virgolette... grazie...

Code:
echo "Installing $packages.deb"

_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
Jacco
n00b
n00b


Joined: 24 Aug 2004
Posts: 23
Location: Treviso, Italy

PostPosted: Tue Sep 07, 2004 7:10 am    Post subject: Reply with quote

silian87 wrote:
In tanto mi fai il piacere di mettere le virgolette... grazie...

Code:
echo "Installing $packages.deb"

Intanto "intanto" si scrive attaccato...grazie...
E intanto anche senza virgolette funziona lo stesso....prego :lol:
_________________
"The back of macs is better than any front of pc's"
Phil Schiller
Back to top
View user's profile Send private message
pascalbrax
Apprentice
Apprentice


Joined: 21 Jan 2004
Posts: 280
Location: 127.0.0.1

PostPosted: Tue Sep 07, 2004 7:14 am    Post subject: Reply with quote

e' questione di convenzione... :P
_________________
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Tue Sep 07, 2004 7:29 am    Post subject: Reply with quote

Esatto, io impazzisco se non vedo le virgolette la!

Fai una prova... commenta anche la riga dell'echo... e lancia lo script... vediamo se ti da lo stesso output
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Tue Sep 07, 2004 7:46 am    Post subject: Reply with quote

[MOD]Post bloccato perche' il problema non mi sembra centri tanto con gentoo[/MOD]
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum