Shell scripts and Java
Theodore J. Soldatos
bafh at hellug.gr
Sat Mar 22 12:07:33 EET 2003
Nicolas Greece wrote:
> Geia sas,
> eimai poli kainourios sto xoro (merikon eimeron).
> Omos diavazo san trelos alla exo vrethei sto eksis
> alito provlima...
>
>
> Exo to Red Hat 8 kai installed as Desktop...
>
> A)
> Exo egatastisei Java (alitheia einai apo prin
> egatestimeni?) kai ginontai ta ekseis...
>
> 1. Ftiaxno me emacs ena Hallo.java arxeio
> 2. Sozo klp
> 3. Trexo Javac Hallo.java
> 4. Mou petaei to ekseis: bash: javac: command not
> found
>
>
> B)
> To idio kano kai me scripts pou grafo kai mou petaei
> akrivos ta idia. (whoson: command not found)
Prospatheis na ta trekseis san root ? An nai, sou synisto na ftiakseis ena
user account kai na dokimaseis apo ekei.
Oso gia ton root, an exeis ena script sto trexon directory prepei na doseis
full path - "./whoson" - to trexon directory den vrisketai sto path tou root.
Mporeis na deis to path dinontas "echo $PATH". Ypopsiazomai oti den mporeis na
trekseis java giati ta executables ths java den einai sto path sou.
T.
--
Theodore=J.=Soldatos=_\_======================================================
= theodore at eexi.gr =_/_====== "Greed is never good" - Linus Torvalds ========
More information about the Migrate2linux
mailing list