Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Forum De Bell Tolls > [Linux] installare un programma da un file .bin Thread Rating: 1 votes, 5.00 average.
Pages (2): « 1 [2]   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Lightman
.grande:maestro.

User info:
Registered: Jul 2002
Posts: 1517 (0.19 al dì)
Location:
Corso:
Anno:
Time Online: 5 Days, 6:24:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Hmm. nel caso non avessi una rh 8.0 puoi comunque definire la funzione pathmunge in /etc/profile cosi' :

code:
pathmunge () { if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then if [ "$2" = "after" ] ; then PATH=$PATH:$1 else PATH=$1:$PATH fi fi }


Saluti :)

__________________
"What peece of worke is a man, how noble in reason, how infinit in faculties, in forme and moouing, how expresse and admirable in action, how like an Angell in apprehension, how like a God: the beautie of the world; the paragon of Annimales; and yet to me, what is this Quintessence of dust: man delights not me" - Hamlet

05-12-2002 08:36
Click Here to See the Profile for Lightman Click Here to See the Blog of Lightman Click here to Send Lightman a Private Message Find more posts by Lightman Add Lightman to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Virgo
.illuminato.

User info:
Registered: Jun 2002
Posts: 239 (0.03 al dì)
Location: Milano
Corso: Informatica
Anno: 5 o 3
Time Online: 5 Days, 16:21:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

che in pratica fa la stessa cosa ma controlla se c'e' e ti permette di specificare la posizione :P quindi io gli consiglierei + di capire cosa significa metterlo "after" o no :)

renaulto aspetto la spiegazione del cappellino :) o vuoi tenere tutto segreto ? :P

05-12-2002 09:11
Click Here to See the Profile for Virgo Click here to Send Virgo a Private Message Find more posts by Virgo Add Virgo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Lightman
.grande:maestro.

User info:
Registered: Jul 2002
Posts: 1517 (0.19 al dì)
Location:
Corso:
Anno:
Time Online: 5 Days, 6:24:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ovvio che fa' la stessa cosa, solo che la fa' in modo molto piu' pulito. :D

Per il significato di "after", e' o non e' un informatico ? Che lo ricavi dal codice di pathmunge ;)

__________________
"What peece of worke is a man, how noble in reason, how infinit in faculties, in forme and moouing, how expresse and admirable in action, how like an Angell in apprehension, how like a God: the beautie of the world; the paragon of Annimales; and yet to me, what is this Quintessence of dust: man delights not me" - Hamlet

05-12-2002 09:15
Click Here to See the Profile for Lightman Click Here to See the Blog of Lightman Click here to Send Lightman a Private Message Find more posts by Lightman Add Lightman to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Virgo
.illuminato.

User info:
Registered: Jun 2002
Posts: 239 (0.03 al dì)
Location: Milano
Corso: Informatica
Anno: 5 o 3
Time Online: 5 Days, 16:21:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si ma dico ci guadagni poco... ti risparmi poco..quindi xche' abituarti a una funzione qundo puoi avere la portabilita' facendolo in 2 comandi...non intendevo che doveva ricavarlo da li...quello e' facile....intendevo capir la differenza che si ha mettendo una dir prima o dopo nel path visto che lo script lo differenzia :)
cmq e' un informatico....diceva di non conoscere linux ma le risposte in molti casi se le dava da solo....e io ho fatto da ripetitore :)

05-12-2002 09:21
Click Here to See the Profile for Virgo Click here to Send Virgo a Private Message Find more posts by Virgo Add Virgo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.90 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:42:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Lightman
Fermi, se ha la RH 8.0 allora e' meglio evitare l' export PATH=$PATH....

E' molto meglio invece usare :

code:
pathmunge /usr/java/j2sdk1.4.1_01/bin after


:)


si si ho la redhat 8.0, ma sta cosa dove al piazzo? sempre nel profile?

__________________
http://www.twitter.com/0m4r

05-12-2002 10:48
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.90 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:42:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Virgo
si ma dico ci guadagni poco... ti risparmi poco..quindi xche' abituarti a una funzione qundo puoi avere la portabilita' facendolo in 2 comandi...non intendevo che doveva ricavarlo da li...quello e' facile....intendevo capir la differenza che si ha mettendo una dir prima o dopo nel path visto che lo script lo differenzia :)
cmq e' un informatico....diceva di non conoscere linux ma le risposte in molti casi se le dava da solo....e io ho fatto da ripetitore :)


Io sinceramete dello script la in cima non è che ci capisco molto, forse prorpio perche non sono un grand intenditore di Linux...sto cercando di impararlo poco per volta me capendolo altrimenti è inutile!

...e poi io sono un COMUNICATORE DIGITALE

__________________
http://www.twitter.com/0m4r

05-12-2002 10:51
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Virgo
.illuminato.

User info:
Registered: Jun 2002
Posts: 239 (0.03 al dì)
Location: Milano
Corso: Informatica
Anno: 5 o 3
Time Online: 5 Days, 16:21:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

infatti secondo me e' meglio che cerch idi capire...xche' quel mungepath non lo avrai in tutte le distro e poi cosa fai quando non lo hai ?
ti conviene leggere un po' di bash scripting...cmq quello scriptino in poche parole:

1) controlla che la directory da aggiungere non sia gia' nel path...
2) se non c'e' allora controlla se hai specificato un 2 parametro x dire se lo vuoi aggiungere all'inizio o alla fine e agisce di conseguenza :)


ciao

05-12-2002 10:56
Click Here to See the Profile for Virgo Click here to Send Virgo a Private Message Find more posts by Virgo Add Virgo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Lightman
.grande:maestro.

User info:
Registered: Jul 2002
Posts: 1517 (0.19 al dì)
Location:
Corso:
Anno:
Time Online: 5 Days, 6:24:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ovvio, non dico di usare pathmunge senza sapere come modificare una variabile nel caso la funzione non ci sia sulla tua distro. Pero', gia' che c'e', tanto vale usarla :D

Comunque, si, va' nel /etc/profile (dove peraltro e' definita pathmunge). :)

__________________
"What peece of worke is a man, how noble in reason, how infinit in faculties, in forme and moouing, how expresse and admirable in action, how like an Angell in apprehension, how like a God: the beautie of the world; the paragon of Annimales; and yet to me, what is this Quintessence of dust: man delights not me" - Hamlet

05-12-2002 10:59
Click Here to See the Profile for Lightman Click Here to See the Blog of Lightman Click here to Send Lightman a Private Message Find more posts by Lightman Add Lightman to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Renaulto
is fan of UTF-8

User info:
Registered: Aug 2002
Posts: 4064 (0.51 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 96 Days, 0:20:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Virgo
renaulto aspetto la spiegazione del cappellino :) o vuoi tenere tutto segreto ?

E' un preservativo per la mia testa di cazzo

__________________
Tanenbaum is overrated.

05-12-2002 14:40
Click Here to See the Profile for Renaulto Click Here to See the Blog of Renaulto Click here to Send Renaulto a Private Message Find more posts by Renaulto Add Renaulto to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.90 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:42:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Virgo
setti il PATH in /etc/profile a livello di sistema invece che di utente
in pratica dovrai mettere quel
export PATH=$PATH.....

ciao :)


qualcuno puo farmi un cut&past del suo etc/profile e dirmi dove cvolo devo aggiungere quella maledetta cosa??????

__________________
http://www.twitter.com/0m4r

17-01-2004 14:15
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Renaulto
is fan of UTF-8

User info:
Registered: Aug 2002
Posts: 4064 (0.51 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 96 Days, 0:20:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by 0m4r
qualcuno puo farmi un cut&past del suo etc/profile e dirmi dove cvolo devo aggiungere quella maledetta cosa??????

Puoi tranquillamente metterla alla fine del file:

export PATH=$PATH:/usr/java/j2sdk1.4.2/bin

17-01-2004 18:13
Click Here to See the Profile for Renaulto Click Here to See the Blog of Renaulto Click here to Send Renaulto a Private Message Find more posts by Renaulto Add Renaulto to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.90 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:42:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Renaulto
Puoi tranquillamente metterla alla fine del file:

export PATH=$PATH:/usr/java/j2sdk1.4.2/bin


non funziona...non so perchè ma non funziona...

__________________
http://www.twitter.com/0m4r

17-01-2004 18:47
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Lightman
.grande:maestro.

User info:
Registered: Jul 2002
Posts: 1517 (0.19 al dì)
Location:
Corso:
Anno:
Time Online: 5 Days, 6:24:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by 0m4r
non funziona...non so perchè ma non funziona...


Puoi provare a dare un env|grep "PATH" e postare il risultato ?

Gia' che ci sei, posta anche il risultato di ll -a /usr/java/j2sdk1.4.2 ...

__________________
"What peece of worke is a man, how noble in reason, how infinit in faculties, in forme and moouing, how expresse and admirable in action, how like an Angell in apprehension, how like a God: the beautie of the world; the paragon of Annimales; and yet to me, what is this Quintessence of dust: man delights not me" - Hamlet

17-01-2004 19:03
Click Here to See the Profile for Lightman Click Here to See the Blog of Lightman Click here to Send Lightman a Private Message Find more posts by Lightman Add Lightman to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Renaulto
is fan of UTF-8

User info:
Registered: Aug 2002
Posts: 4064 (0.51 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 96 Days, 0:20:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by 0m4r
non funziona...non so perchè ma non funziona...

Dopo aver effettuatto la modifica hai ordinato alla shell di rileggere il file di configurazione? :

# source /etc/profile

17-01-2004 20:51
Click Here to See the Profile for Renaulto Click Here to See the Blog of Renaulto Click here to Send Renaulto a Private Message Find more posts by Renaulto Add Renaulto to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 03:28.    Post New Thread    Post A Reply
Pages (2): « 1 [2]   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.048 seconds (77.39% PHP - 22.61% MySQL) con 25 query.