Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: question


  • Subject: Re: lug-bg: question
  • From: danchev@xxxxxxxxx (George Danchev)
  • Date: Mon, 3 Sep 2001 00:43:38 +0300



On Sunday 02 September 2001 23:24, you wrote:
> #!/bin/bash
> (program_name) &
> sleep 2
> killall -9 program_name
>
> Gornoto e "quick and dirty" reshenie.
> V dosta sluchai varshi rabota.
>
> Svetoslav
>
> On Sunday 02 September 2001 22:02, you wrote:
> > Zdraveite,
> >  Mozete li da mi kazete kak moga
> > da startiram niakakva programa, kato
> > obache i zadam vremevi limit? Naprimer
> > startiram programata "prog" i iskam sled
> > 2 sekundi, ako ne prikluchila rabotata i
> > da se spre sama.
az maj se sestam ko iskash da pravish ta za tova ste zadulbo4a malko 
amatiorshtinata . Very very simple sheduling ;)

Cikula ste se izpylnqwa Bezkraen broj pyti  
#!/bin/bash
while p=1 ; do
p=0
(program_name) & 
sleep 20    #kolko vreme ste raboti programata predi da byde ubita
killall -9 program_name
sleep 10    #sled kolko vreme ste byde startirana pak programata 
done

Cikula ste se izpylnqva Kraen broj pyti (primerno 3)
#!/bin/bash
for i in 1 2 3 ; do
(program_name) & 
sleep 20 
killall -9 program_name
sleep 10
done

to imalo i cron nqkude :)

===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora


  • Относно:

 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.