Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Rainer Weikusat
March 27, 2015, 11:18 pm
rate this thread
first argument pass to this subroutine has to be a reference to an
anonymous subroutine and the 'sub' keyword may be omitted from the
definition. I didn't use this for anything (except 'pseudo loop
examples') so far, however, an idea I consider rather neat is using at
exit(1) if rand(100) >= 50;
$rq = make_request($srv_info);
[the code in the subroutine is obviously just for testing]
Ultimatively, this will end up connecting to an Apple DEP server in
order to retrieve a (so-called) session authentication token which comes
with all the usual perils of network programming so the 'communication'
part should be retried (with some randomized delay) unless the process
is stopped by admin intervention before it succeeded (not supposed to be
The until_success subroutine implements the 'try this, wait for some
time if it didn't work and try again' part while the productive code
will end up in the block.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum