Network-Startup Script

A forum for general AmigaOS 4.x support questions that are not platform-specific
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1744
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Network-Startup Script

Post by nbache »

cha05e90 wrote:Of course only AmiUpdate is started, because you don't detach it from your script. So nothing will happen, until you manually quit AmiUpdate (and Simplemail afterwards). It should read:

Code: Select all

Run >NIL: SYS:Utilities/AmiUpdate/AmiUpdate
Run >NIL: APPLICATIONS:SimpleMail/SimpleMail
Run >NIL: PPLICATIONS:Jabberwocky/Jabberwocky
Or you could use WBRun to start them, that way they will still be started as Workbench programs, just like they were from WBStartup.

Best regards,

Niels
User avatar
dan.hutch
Posts: 21
Joined: Tue Jun 28, 2011 9:50 pm

Re: Network-Startup Script

Post by dan.hutch »

@cha05e90

Thanks! That's done the trick. :D

Hopefully WBStartup items will have a 'wait for network' option or similar in the future.
User avatar
MichaelMerkel
Beta Tester
Beta Tester
Posts: 357
Joined: Mon Dec 20, 2010 2:08 pm
Location: Germany
Contact:

Re: Network-Startup Script

Post by MichaelMerkel »

dan.hutch wrote:@Raziel
I leave all the other application to WBStartup...because running it so early may lead to more problems because of not yet loaded dependencies
I've always done the same in the past but the network never seems to be ready soon enough for WBStartup now.

Code: Select all

date server prefs save
Take it this checks system time against the network time server specified in Time Prefs?
in my opinion no single of that programs should "fail" just because the network is not yet started or connected.

e.g. amiupdate - if no network is "online" - well, just don't check for updated. and as soon as the network is available -> do the check.
this is how the programs *should* work. each of them.
simplemail -> well, the same.

regards...
michael
Michael Merkel :lol:
(Member of Amiga Freunde Pfalz)
User avatar
ChrisH
Beta Tester
Beta Tester
Posts: 920
Joined: Mon Dec 20, 2010 9:09 pm
Contact:

Re: Network-Startup Script

Post by ChrisH »

cha05e90 wrote:

Code: Select all

Run >NIL: SYS:Utilities/AmiUpdate/AmiUpdate
Run >NIL: APPLICATIONS:SimpleMail/SimpleMail
Run >NIL: APPLICATIONS:Jabberwocky/Jabberwocky
I would suggesting using WbRun for Workbench programs:

Code: Select all

WbRun SYS:Utilities/AmiUpdate/AmiUpdate
WbRun APPLICATIONS:SimpleMail/SimpleMail
WbRun APPLICATIONS:Jabberwocky/Jabberwocky
N.B. Also, AmiSystemRestore won't spot AmiUpdate doing anything unless it is run using WbRun. (This is something I need to fix.)
Post Reply