[06:12] morning boys and girls. [07:47] o/ [07:53] o/ [08:10] my little daughter is on her way, labour has started, :) [08:12] good luck! [08:15] ty, :) [08:21] so... you going to raise her a vim or emacs user? :-P [08:22] emacs all the way. :) [08:23] trekkie or star wars? [08:24] definitly trekkie, :D [08:24] ...or whovian... [08:24] that too, :) [08:24] python or perl? [08:25] zx spectrum or c64? [08:25] hmm, neither, C++. definitly c64. [08:26] there's so much they don't prepare you for to be a parent... :-D [08:26] definitly not. [08:28] at least you can start their geekdom young now... https://www.zazzle.com/dungeons+and+dragons+baby+clothes [08:28] hehe, :) [15:26] so... say I want a script that I call with sudo, and I want to pass a command with args to the script and have that command be run as another user (using su) [15:26] (it's not what I want to do, but it illustrates things) [15:26] I have this working using a here document, like this: https://src.crazedbytes.net/snippets/11 [15:27] but it feels like there should be a way to do that using 'su -c ...' - but I can't get the escaping right to make that work [15:27] I tried this for example: https://src.crazedbytes.net/snippets/12 [15:27] any ideas on how I make that work?