provlima se bash scripting

Christos Ricudis ricudis at komodino.itc.auth.gr
Tue Dec 5 17:04:11 EET 2006


yiorgos kapellakis wrote:

fork() apo shell script leei o enas,  sleep leei o allos, kai egw 
konteyw na ginw san ton Giwrgakh ton Papandreou.

prwto_scriptoni.sh :
#!/bin/sh
LALA=koko
KOKO=lala
export LALA
scriptoni.sh deytero
. scriptoni.sh trito
scriptoni.sh tetarto &
scriptoni.sh pempto

scriptoni.sh :
#!/bin/sh
echo Eimai to $1 scriptoni!
if [ "$1" = "tetarto" ] ; then
   sleep 2
fi
echo LALA=$LALA
echo KOKO=$KOKO
echo $1 scriptoni ends

$ chmod +x prwto_scriptoni.sh scriptoni.sh
$ sh prwto_scriptoni.sh

Deite kala to output kai 8a katalabete to 90% pou xreiazetai na kserete 
gia ta shell scripts.

> mporeis na baleis tin sleep xronos se sec an 3ereis poso xrono 8elei
> mexri na teleiwsei
>
> On 12/5/06, Vassilis Georgiou <vassilis.georgiou at gmail.com> wrote:
>   
>> Kalispera sti lista,
>>
>> Exw to eksis provlima: Exw grapsei ena scriptaki to opoio mesa tou ektelei
>> alla skriptakia. To provlima einai oti to eksoteriko script den perimenei na
>> oloklirothei to esoteriko prin paei stin epomeni grammi na ektelesei to
>> epomeno esoteriko script. Ti mporw na kanw gia na perimenei na teleiwsei to
>> ena prin paei sto epomeno?
>>
>> Euxaristw,
>>
>> Vassilis Georgiou
>>
>>
>>
>>
>> --
>> linux-greek-users mailing list -- http://lists.hellug.gr
>>
>>     
>
>
>   


-- 
Christos Ricudis				ricudis at itc.auth.gr
Systems Administrator				+30-2310-998656
IT Support Center
Aristotle University of Thessaloniki, GREECE




More information about the Linux-greek-users mailing list