Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to ssh to multiple hosts in iTerm' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to ssh to multiple hosts in iTerm
Authored by: kbradnam on Jul 12, '07 11:47:35AM

Can't you just use the UNIX sleep command with a value less than 1? I.e. do shell script "/bin/sleep 0.25"

Sleep does accept very small time intervals (e.g. sleep 0.01).

Keith



[ Reply to This | # ]
An AppleScript to ssh to multiple hosts in iTerm
Authored by: delight1 on Jul 12, '07 01:20:32PM

i do believe that this should work...



[ Reply to This | # ]
An AppleScript to ssh to multiple hosts in iTerm
Authored by: nvrmore100 on Jul 12, '07 03:33:49PM

Interesting, I ran some tests and it does indeed let you do partial seconds. I have tried doing sleeps for less than a second in the past (quite a few years ago) and the systems back then wouldn't allow for it (really old Solaris and HP systems). Looks like that works though, doing a quarter second sleep seems to be just about right to keep it from hanging up.

Thanks for the tip!



[ Reply to This | # ]
An AppleScript to ssh to multiple hosts in iTerm
Authored by: garyaj on Jul 12, '07 08:09:47PM

'sleep' with fractions of seconds is a new one for me also. Just checked it on my MB and yay!, it works.

Many thanks for this.



[ Reply to This | # ]