Exit status to a variable.
Dimitrios P. Bouras
dbouras at hol.gr
Tue Apr 29 17:25:09 EEST 1997
Nikos Vasaitis wrote:
>
> Pos mporo na anatheso to exit status enos programmatos se mia metavliti
> (se bash script)?
>
Niko, xronia polla.
Symfwna me to man page tou bash, h eidikh metablhth $? periexei to
return status ths teleutaias ekteles0eisas entolhs. AMESWS meta thn
entolh pou ekteleis, mporeis na baleis p.x. ena statement "rcode=$?",
ekxwrwntas sthn metablhth rcode to status ths entolhs.
PS. man bash, man bash, man bash, man bash... :)
--
| Dimitrios P. Bouras | Tel.: +30 1 894-1320 or 968-0554 |
| 41 Pandora Str. | FAX: +30 1 382-7900 |
| 166 74 Athens | E-mail: dbouras at hol.gr, dimitri at ee.ubc.ca |
| GREECE | Web: http://users.hol.gr/~dbouras |
--
====================================================================
Gia na mathete pos na xrisimopoiite ton majordomo, stilte e-mail
sto "majordomo at argeas.argos.hol.gr" me 1 grammi sto keimeno: help
Ta archives tis listas einai sto http://www.argos.hol.gr/lists
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================
More information about the Linux-greek-users
mailing list