Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...

Browsing this Thread:   1 Anonymous Users



(1) 2 »


launch a script periodically ? daemonize a script ?

Joined:
2013/1/15 6:16
From Marseille
Group:
Member
Posts: 196
Offline
Hi all,

Is there a way to launch a script periodically, like a planified task ?

Thanx,
Jess

Posted on: 3/5 0:15
Transfer the post to other applications Transfer


Re: launch a script periodically ? daemonize a script ?

Joined:
2009/4/16 23:03
From Liancourt Saint Pierre - France
Group:
Member
Posts: 1119
Offline
You might be able to do what you want using waitx shell command : http://aros.sourceforge.net/documentation/users/shell/waitx.php

Posted on: 3/5 1:18
_________________
Yannick
http://www.dusabledanslherbe.eu/AROSPage
Transfer the post to other applications Transfer


Re: launch a script periodically ? daemonize a script ?

Joined:
2013/1/15 6:16
From Marseille
Group:
Member
Posts: 196
Offline
powerfull command !
thanks

Posted on: 3/5 1:21
_________________
Loved Amiga from the first second. DMOS RULEZ!
IcAROS native SB Audigy 2- RTL8169 network card - nVidia nvs 380 -- some nice articles on aros, music, and amiga here : http://thewetmachine.net/icaros-configuration/
Transfer the post to other applications Transfer


Re: launch a script periodically ? daemonize a script ?

Joined:
2004/4/7 4:26
Group:
Member
Posts: 4326
Offline
Do you mean something like cron, or windows' scheduled tasks? There is nothing so flexible for now, sorry.

Posted on: 3/5 2:38
_________________
p.bes
Icaros Desktop AROS distribution mantainer
Transfer the post to other applications Transfer


Re: launch a script periodically ? daemonize a script ?

Joined:
2013/1/15 6:16
From Marseille
Group:
Member
Posts: 196
Offline
paolone : thanks for the answer. it was the point : having a process that allows to automate things in the background.
it seems there isn't... but with a opened cli window why not... i've also seen that some kind of copy process launched with user-startup go on running after the opening of DOpus screen... maybe I can use this feature to run some background tasks ? I'll try this...
And anyway, an opened cli window should do the job for the moment.

Posted on: 3/6 2:11
_________________
Loved Amiga from the first second. DMOS RULEZ!
IcAROS native SB Audigy 2- RTL8169 network card - nVidia nvs 380 -- some nice articles on aros, music, and amiga here : http://thewetmachine.net/icaros-configuration/
Transfer the post to other applications Transfer


Re: launch a script periodically ? daemonize a script ?

Joined:
2005/2/1 19:32
Group:
Member
Posts: 484
Offline
when thinking about background processes, a commodity comes to mind. that would integrate nicely into the OS (Exchange).
-> maybe take a look at AROS's sources, directory tools/commodities?

(oops, maybe im totally offtopic - are we talking software development here? or are you looking for something ready-to-run?)

Posted on: 3/6 8:56
_________________
http://amigaalive.blogspot.de/
Transfer the post to other applications Transfer


Re: launch a script periodically ? daemonize a script ?

Joined:
2013/1/15 6:16
From Marseille
Group:
Member
Posts: 196
Offline
roMancer : originaly, it was some "ready-to-run" solution if it exists.
My programming skills are very limited.

Or some possible way to make a script resident could do the job if crossed with the waitx command ?

Posted on: 3/7 6:50
_________________
Loved Amiga from the first second. DMOS RULEZ!
IcAROS native SB Audigy 2- RTL8169 network card - nVidia nvs 380 -- some nice articles on aros, music, and amiga here : http://thewetmachine.net/icaros-configuration/
Transfer the post to other applications Transfer


Re: launch a script periodically ? daemonize a script ?

Joined:
2005/9/3 1:24
From Colorado, USA
Group:
Member
Posts: 741
Offline
run waitx 10mins always execute scriptname


This untested code will execute a script named scriptname every ten minutes. (You might need an equals sign between the 10 and the mins since I'm not that great at interpreting the key string for the argument parser. Likewise you might need quotes around the execute command and its parameters.)

Note also that although scripts cannot be made resident, they can be copied to the RAM: device and held in memory that way.

Posted on: 3/8 0:10
Transfer the post to other applications Transfer


Re: launch a script periodically ? daemonize a script ?

Joined:
2013/1/15 6:16
From Marseille
Group:
Member
Posts: 196
Offline
Samuraicrow : thanx, nice piece of code. this is something like that i was thinking about.
"cannot be made resident" : it means that you have to let the shell window opened, i presume ?

A compiled program could be made resident simply ?

Posted on: 3/8 1:10
_________________
Loved Amiga from the first second. DMOS RULEZ!
IcAROS native SB Audigy 2- RTL8169 network card - nVidia nvs 380 -- some nice articles on aros, music, and amiga here : http://thewetmachine.net/icaros-configuration/
Transfer the post to other applications Transfer


Re: launch a script periodically ? daemonize a script ?

Joined:
2004/4/7 4:26
Group:
Member
Posts: 4326
Offline
Hi

To avoid opening shell or output windows, please

1. be sure to run the waitx command with the QUIET switch and >NIL: output redirection

2. avoid in your own script to add commands that try to output something on the console

for more information, open a shell and give the following commands

run help run
run help waitx

regards

Posted on: 3/8 3:41
_________________
p.bes
Icaros Desktop AROS distribution mantainer
Transfer the post to other applications Transfer



(1) 2 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4326
2 magorium
magorium
4095
3 phoenixkonsole
phoenixkonsole
3887
4 nikolaos
nikolaos
3677
5 deadwood
deadwood
2923
6 ncafferkey
ncafferkey
2595
7 mazze
mazze
2201
8 clusteruk
clusteruk
2065
9 Kalamatee
Kalamatee
2018
10 damocles
damocles
1789
© 2004-2017 AROS Exec