The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2017-05-14

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:15 Phil21 joined #mojo
00:26 Phil21 joined #mojo
00:27 Phil21 joined #mojo
00:29 Phil21 joined #mojo
00:31 Phil21 joined #mojo
02:13 noganex_ joined #mojo
02:23 maschine joined #mojo
03:20 disputin joined #mojo
03:54 punter joined #mojo
05:20 aborazmeh joined #mojo
06:13 dod joined #mojo
06:19 dod joined #mojo
06:30 punter joined #mojo
07:01 punter I want to setup a systemd unit to run hypnotoad. I've done that, but now I want to run "perlbrew use 5.24.0" first - what's the recommended way of doing that?
07:02 punter I'm thinking of changing the start command (in the systemd unit) to: perlbrew use 5.24.0 && hypnotoad bla bla
07:04 punter But the perlbrew command won't be found, I think, because the PATH doesn't include perlbrew (which resides in ~/perl5/perlbrew)
07:04 punter What should I do? Is there a command that will popoulate all the correct environemnt variables?
07:04 punter Something like "su - myuser" ?
07:05 punter But su - myuser asks for a password, so I can't have that in my start command
07:05 punter What should I do?
07:48 Lee joined #mojo
07:56 cheako joined #mojo
07:59 dod joined #mojo
08:17 sh14 joined #mojo
08:32 punter ok, found the solution: /bin/bash --login -c
08:39 cheako joined #mojo
09:12 stryx` joined #mojo
09:15 pink_mist punter: you could just use the complete path to your 5.24.0 perl binary to run it: /home/<user>/perl5/perlbrew/perls/perl-5.24.0/bin/perl hypnotoad
09:57 simcop2387 full path is what i do.
10:00 pink_mist (actually, presuming the hypnotoad binary was installed in that dir, just run it directly)
10:01 stryx` joined #mojo
10:44 dotan_convos joined #mojo
10:45 Vandal joined #mojo
10:50 stephan48 pink_mist: https://paste.stejau.de/c63f06cf7ad7 - i usually wrap any script i want to run in a wrapper like this
10:50 stephan48 it makes sure that you got the correct env setup for perlbrew and then runs it
10:50 stephan48 especially as i usually have global perl installations on my systems
10:50 stephan48 punter: ^
10:51 stephan48 sorry for the tab mistake :)
10:51 punter ok
10:52 stephan48 it is a bit cumbersome but i found it to be giving me the least headaches :D
10:52 stephan48 especially in combination with different enviroments(cron, shell, sudo, su, bla)
10:53 stephan48 another advantage is that calling hypnotoad/morbo instead of perl will just work as perlbrew will set the correct PATHs
10:56 Bloke joined #mojo
11:55 dod joined #mojo
13:15 rshadow joined #mojo
13:58 sh14|2 joined #mojo
14:11 kaare joined #mojo
14:25 dod joined #mojo
14:28 FatalNIX joined #mojo
14:29 FatalNIX znc is being dumb
15:34 coolo joined #mojo
16:08 cheako joined #mojo
16:46 dod joined #mojo
16:53 Lee joined #mojo
17:52 stryx` joined #mojo
18:22 cheako joined #mojo
18:40 cheako joined #mojo
18:43 PryMar56 joined #mojo
18:44 stryx` joined #mojo
19:19 zivester joined #mojo
20:25 stryx` joined #mojo
20:40 Phil21 joined #mojo
21:40 gryphon joined #mojo
22:43 disputin joined #mojo
22:46 disputin joined #mojo
22:51 disputin joined #mojo
23:49 dboehmer joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary