20 March 2017, 20:45 | #1 |
Registered User
Join Date: Jan 2014
Location: California
Posts: 1,146
|
Adding a timeout to a user-startup command?
My A500 has Wi-Fi, but the Wi-Fi bridge is on the same power strip as the Amiga, so the first time I boot the whole system, the bridge is still handshaking with my router when my user-startup calls:
Code:
ntpsync_68k -c us.pool.ntp.org I can live without this on my first boot of the day, so when user-startup hangs there, I hit Ctrl-C and am in Workbench in no time (pardon the pun). Curiously the time seems to have set, but it didn't return a completion message in time (pardon the pun). So what I want to do is add a timeout (pardon the pun) to that line of user-startup. Is this possible and if so what is the code? Thanks!! |
20 March 2017, 21:20 | #2 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
you can try to "runback" ntpsync using AsyncRun_1.8 .
from the description it will completely detache, so you will get your workbench in no time Last edited by emufan; 20 March 2017 at 21:27. |
20 March 2017, 23:17 | #5 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
I only quickly read your thread so hopefully I've understood what it is that you want to achieve / require...
You have this in your "User-Startup" file in relation to setting up the Wi-Fi connection: Code:
ntpsync_68k -c us.pool.ntp.org You could then add the Wait command after the above for whatever period is required before Workbench is loaded / ready to use. Perhaps you could even display something like: Code:
Echo Waiting x seconds (or minutes) for blah, blah, blah to initialise... Wait SECS x (or Wait MINS x) |
20 March 2017, 23:25 | #6 | |
Registered User
Join Date: Jan 2014
Location: California
Posts: 1,146
|
Quote:
Thanks!! |
|
20 March 2017, 23:25 | #7 | |
Registered User
Join Date: Jan 2014
Location: California
Posts: 1,146
|
Quote:
Thanks!! |
|
20 March 2017, 23:47 | #8 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
|
21 March 2017, 00:14 | #9 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,645
|
Can't you just Run >NIL: it to be detached from the startup-sequence? Then it'll do its business while Workbench continues to load.
|
21 March 2017, 00:37 | #10 |
Registered User
Join Date: Jan 2014
Location: California
Posts: 1,146
|
|
21 March 2017, 01:31 | #11 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
|
Run >NIL: ntpsync_68k -c us.pool.ntp.org
|
21 March 2017, 01:36 | #12 |
Registered User
Join Date: Jan 2014
Location: California
Posts: 1,146
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ask like command with timeout (and default option) | Vot | Coders. Scripting | 3 | 27 May 2013 18:00 |
Workbench Version command and startup-sequence | Ze Emulatron | support.Other | 3 | 27 June 2011 16:19 |
Server timeout issue | andreas | project.EAB | 11 | 23 June 2011 04:49 |
a box in winuae gui for adding user notes wud be ace | kirk | request.UAE Wishlist | 7 | 24 April 2009 11:27 |
AmiTCP startnet in user-startup | rlake | support.Apps | 3 | 16 February 2004 05:33 |
|
|