SliTaz SliTaz Forum

You are not logged in.

#1 2014-09-12 07:44:04

fuegos
Member
Registered: 2014-09-12
Posts: 2

How to run app in an infinite loop

Hi guys,

I'm trying to run rdesktop in an infinite loop. So far I have managed to auto run it before the desktop comes up. The challenge now is to write short script that will be re-running app when user will try to press esc or session times out. Normally ctrl+alt+enter and then esc was interrupting the loop. Other combination can be used or secret key combination pressed to log-in root...

On different distro i have used following scripts:

until $

do

rdesktop (lots of switches here)

done

and 2nd one:

for (( ; ; ))

do

rdesktop (lots of switches here)

done

I have not got a clue how to do it in SliTaz

Could you please help me?

Many thanks!

Offline

#2 2014-09-13 15:21:13

necrophcodr
Member
Registered: 2014-02-20
Posts: 101

Re: How to run app in an infinite loop

[c]while true; do rdesktop (lots of switches here); done[/c]

Offline

#3 2014-09-16 08:17:13

fuegos
Member
Registered: 2014-09-12
Posts: 2

Re: How to run app in an infinite loop

That worked a treat. Thanks a lot for your help!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]