#silverstripe IRC Log

IRC log for 4 October 2017

All timestamps are in UTC.

1: [00:03:23] * jarvis_ quit (Client Quit)
2: [00:09:35] * Nightjar quit (Ping timeout: 240 seconds)
3: [00:49:29] * Nightjar has joined #silverstripe
4: [00:53:02] * Kayneos has joined #silverstripe
5: [00:53:02] <ss-helper> Kayneos: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
6: [02:10:45] * Nightjar_ has joined #silverstripe
7: [02:14:57] * Nightjar quit (Ping timeout: 248 seconds)
8: [02:44:50] * Kayneos quit (Ping timeout: 260 seconds)
9: [07:45:35] * samsamek has joined #silverstripe
10: [07:51:07] * samsamek has left #silverstripe
11: [08:35:46] * samsamek has joined #silverstripe
12: [08:35:53] * samsamek has left #silverstripe
13: [09:41:24] * samsamek has joined #silverstripe
14: [09:45:09] * samsamek has left #silverstripe
15: [10:19:46] <Audlex> i haven't set up a cron job before, is this right? php /public_html/silvershop/code/tasks/CartCleanupTask.php
16: [10:22:19] * jarvis_ has joined #silverstripe
17: [11:32:22] * jarvis_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18: [12:02:40] * samsamek has joined #silverstripe
19: [12:02:43] * samsamek has left #silverstripe
20: [14:10:35] * cloph_away is now known as cloph
21: [14:26:17] * DarjusIT has joined #silverstripe
22: [14:26:22] <cloph> Audlex: nope, not correct - at least not when you mean running a silverstripe based task.
23: [14:27:18] <cloph> would be something like "framework/sake YourTaskName" instead.
24: [14:27:56] <cloph> (or php framework/cli-script.php YourTask)
25: [14:29:09] <cloph> if you want to be explicit: framework/sake dev/tasks/YourTask
26: [14:50:21] * samsamek has joined #silverstripe
27: [14:50:23] * samsamek has left #silverstripe
28: [15:51:06] * samsamek has joined #silverstripe
29: [15:51:14] * samsamek has left #silverstripe
30: [17:17:58] * gelignite has joined #silverstripe
31: [17:24:38] * gelignite quit (Remote host closed the connection)
32: [17:26:57] * gelignite has joined #silverstripe
33: [18:19:50] * DarjusIT quit (Remote host closed the connection)
34: [18:20:14] * DarjusIT has joined #silverstripe
35: [18:34:50] * DarjusIT quit (Quit: Leaving)
36: [18:51:33] * Azure quit (Read error: Connection reset by peer)
37: [19:24:13] * Azure has joined #silverstripe
38: [19:30:36] * Azure quit (Read error: Connection reset by peer)
39: [19:37:00] * Azure has joined #silverstripe
40: [19:48:29] <Nightjar_> Audlex, if you're asking for full cron syntax, then nope. If you're just looking for the command, then basically what cloph has said.
41: [19:48:39] <Nightjar_> were the format is
42: [19:49:15] <Nightjar_> either '/path/to/framework/sake' OR 'php /path/to/framework/cli-script.php'
43: [19:50:36] <Nightjar_> followed by the controller you're wanting to run (as if it was a request), e.g. hompage or contact-us/SPAMFORM or (particularly in your case) dev/tasks/CartCleanupTask
44: [19:50:53] <Nightjar_> followed by parameters in a key=value type syntax.
45: [19:51:14] <Nightjar_> all space seperated, with any number of kv pairs on the end
46: [19:52:01] <Nightjar_> e.g. in full
47: [19:53:21] <Nightjar_> * 2 * * * /srv/www/framework/sake dev/tasks/CartCleanupTask destroy=all type=humans
48: [19:53:41] <Nightjar_> which would run the task you want with 2 parameters (here for demonstration only), every day at 2am
49: [19:54:09] <Nightjar_> _system_ time, which may be different from PHP's locale setting (hopefully not though).
50: [19:55:57] <Nightjar_> Also worth looking at though (instead) is the symbiote/silverstripe-queuedjobs module
51: [19:56:08] <Nightjar_> err
52: [19:56:09] <Nightjar_> or
53: [19:56:45] <Nightjar_> silverstripe/crontask
54: [19:57:55] <Nightjar_> which allows you to control things via the PHP side, setting up only one actual cron task to run every minute or so (basically asking SilverStripe if anything needs to run instead of doing it directly).
55: [20:18:27] * Dig has joined #silverstripe
56: [21:05:07] * DarjusIT has joined #silverstripe
57: [21:34:22] * Nightjar_ quit (Read error: Connection reset by peer)
58: [21:40:13] * Dig quit (Quit: Leaving)
59: [22:41:39] <Audlex> thanx cloph, I used cli-script in the end :)
60: [22:43:52] <Audlex> although after reading Nightjar_ and the docs maybe I will change it to sake
61: [23:00:02] * ss-helper quit (Remote host closed the connection)
62: [23:00:18] * ss-helper has joined #silverstripe

These logs were automatically created by ss-log on irc.freenode.net.