|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Feb 2002
Città: Este (PD)
Messaggi: 2907
|
Guida file batch unix
Salve ragazzi sapete darmi qualche link utile per generare file batch unix, con i comandi batch winzoz me la cavo alla grande ma non sono molto pratico di quelli unix.
Grazie
__________________
<<La Verità non richiede fede.>> |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Jan 2004
Città: Gatteo
Messaggi: 2955
|
cerca abs-guide.pdf su google
__________________
And so at last the beast fell and the unbelievers rejoiced. But all was not lost, for from the ash rose a great bird. The bird gazed down upon the unbelievers and cast fire and thunder upon them. For the beast had been reborn with its strength renewed, and the followers of Mammon cowered in horror. |
![]() |
![]() |
![]() |
#4 |
Senior Member
Iscritto dal: Feb 2002
Città: Este (PD)
Messaggi: 2907
|
Grazie da quello che ho visto finora gli script della shell sono potentissimo
![]() ![]()
__________________
<<La Verità non richiede fede.>> |
![]() |
![]() |
![]() |
#5 |
Senior Member
Iscritto dal: Jan 2004
Città: Gatteo
Messaggi: 2955
|
Giusto un filino eh
![]()
__________________
And so at last the beast fell and the unbelievers rejoiced. But all was not lost, for from the ash rose a great bird. The bird gazed down upon the unbelievers and cast fire and thunder upon them. For the beast had been reborn with its strength renewed, and the followers of Mammon cowered in horror. |
![]() |
![]() |
![]() |
#6 |
Senior Member
Iscritto dal: Feb 2002
Città: Este (PD)
Messaggi: 2907
|
I comandi unix sono universali posso usarli sia su linux che su darwin osx per esempio, giusto?
__________________
<<La Verità non richiede fede.>> |
![]() |
![]() |
![]() |
#7 | |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
Quote:
Su alcuni unix può capitarti di trovare ancora il vecchio "sh"; è il fratello minore di bash, non supporta tutta la sintassi. Con un pò d'esperienza imparerai a cavartela e a gestire le differenze.
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
|
![]() |
![]() |
![]() |
#8 | |
Senior Member
Iscritto dal: Feb 2002
Città: Este (PD)
Messaggi: 2907
|
Quote:
![]()
__________________
<<La Verità non richiede fede.>> |
|
![]() |
![]() |
![]() |
#9 | |
Senior Member
Iscritto dal: Feb 2002
Città: Este (PD)
Messaggi: 2907
|
Quote:
__________________
<<La Verità non richiede fede.>> |
|
![]() |
![]() |
![]() |
#10 |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
bash --version
Spera che sia la versione 2. Se non c'è bash, per vedere qual è l'interprete di default, puoi lanciare set |grep "SHELL=" Dovrebbe funzionare su molti sistemi. Tieni conto che puoi usare nei tuoi script qualsiasi interprete presente nel sistema, non solo quello di default. Lo indichi nella prima riga dello script; ad es. se vuoi fare uno script per ash (un altro interprete tipo sh), basta che inizi lo script con #!/bin/ash
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
![]() |
![]() |
![]() |
#11 |
Senior Member
Iscritto dal: Feb 2002
Città: Este (PD)
Messaggi: 2907
|
Ok grazie su linux è facile capire la versione delle cose instalalte è osx che essendo un unix mascherato è un pochetto + incasinato IMHO
__________________
<<La Verità non richiede fede.>> |
![]() |
![]() |
![]() |
#12 |
Senior Member
Iscritto dal: Feb 2002
Città: Este (PD)
Messaggi: 2907
|
Cmq ho appena controllato sul 10.4 c'è bash 2.05
![]()
__________________
<<La Verità non richiede fede.>> |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 15:31.