Originally Posted by acid_kewpie
while [ 1 ]; do rdesktop -a -b -c -d; done
your recursion is pretty horrible. every time you run it round you spawn another depth of recursion. if you close remote desktop 20 times you have 20 instances of the batch file running, each one waiting on it's spawned clone. yuck. in batch just use a label and a goto statement instead.
thnx i'll try it out in a second
well i could add a exit at the end of the script... so it closes itself ;-), then again, its mostly office workers... they turn the pc on at 8-9AM and turn it off at 5-6PM, they never log out, only at some places the comp would swap between 3 shifts, and gets turned out a-lot too...
thnx for the insights though
my 2nd questions would be...
i guess i open a editor as root (sudo) insert the command, then were & how do i safe it? without an extension? script COULD be saved in the users my documents... as the dont use the local machine, and dont have knowledge of linux at all... hardly windows experienc....