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. > Didattica > Corsi N - Z > Sistemi operativi I > controllare numero di parametri
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
People
.primate.

User info:
Registered: Nov 2005
Posts: 68 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 12:40:04: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
controllare numero di parametri

ciao..premesso ke sulla giuda nn riesko a trovarlo..e premesso ke sulla mia guida se faccio man -k parolakiave nn trova niente..
come faccio a controllora il numero di parametri passati ad un programma?
io per ora ho provato facendo:
i parametri devono essere2
if [$# -lt 2] then
echo mankano i parametri
else
....
ma anke se gl passo un parametro solo se ne sbatte e và avanti...

14-09-2006 16:26
Click Here to See the Profile for People Click here to Send People a Private Message Find more posts by People Add People to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
People
.primate.

User info:
Registered: Nov 2005
Posts: 68 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 12:40:04: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

oki risolto...
la sintassi è giusta soltanto ke mankavano gl spazi tra le quadre:D

soluzione:
if [ $# -lt 2 ]

altra kosa xò dove trovo le opzioni di if?tipo -lt o -eq
su man if nn c sono...:(
ps:stò scrivendo tutto qua xkè penzo sia utile x l esame ;)

14-09-2006 16:35
Click Here to See the Profile for People Click here to Send People a Private Message Find more posts by People Add People to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
giulio
.no title at all.

User info:
Registered: Jul 2003
Posts: 153 (0.02 al dì)
Location: Earth
Corso: Once upon a time...
Anno:
Time Online: 8 Days, 21:56:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by People
altra kosa xò dove trovo le opzioni di if?tipo -lt o -eq
su man if nn c sono...:(
ps:stò scrivendo tutto qua xkè penzo sia utile x l esame ;)


man test

14-09-2006 17:18
Click Here to See the Profile for giulio Click here to Send giulio a Private Message Find more posts by giulio Add giulio to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 19:34.    Post New Thread    Post A Reply
  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.135 seconds (54.35% PHP - 45.65% MySQL) con 25 query.