[09:59] morning all [10:00] how would one find the ful path to a command eg touch [10:02] which [10:02] or type [10:03] actually "type $COMMANDNAME" is better because it works on shell bultins etc. [10:03] "which" will return just the path so it's handy if you want to use it in scripts [10:04] e.g. "ls -l $(which vim)" will tell you the size & perms etc of the vim command [10:05] Can also be used to tell you the deb package that a programme is in: [10:05] dpkg -S $(which pv) [10:05] This is Unix, you should know this. [10:07] [10:15] thanks ebel [10:29] hey guys whats the best way to debug a cron job [10:34] stdout and stderr from a cron job should be sent to root's mailbox by default [10:35] or whichever user is setup as a the alias for root (/etc/aliases) [10:45] or put the output (stdout & atderr) to a file and look at it [10:45] You can use "env" command to print the current environment variables. [10:46] and look in the log file, where it starts the cron, you can see if the cron is running or not [10:46] i have pit stdout and err to a file and getting stuff now [10:46] environmental variables & PATHs & user account are usually the things that mess up crons [10:47] i think i have fixed it [10:47] ebel: that what it was forgot to change to the pull path for one of them [10:55] ah full paths [10:55] in python you can standardise paths with os.path.abspath() [10:55] You can do it on the command line with `realpath` [10:56] tis always good to sanitise input data from the user ASAP [11:05] don't forget file permissions, chances are cron isn't running as your user/the user you think [11:35] ok cron is runn when i tell it do */5 for every 5 min but not when i set a time [11:35] could the cron user be using a different time setting [11:37] that question doesn't make sens [11:38] what "time string" are you using? [11:38] AFAIK cron is run as root, it just can run certain lines as a a different user [11:41] Only root is God. Only root can change to a different user. Sometimes root will, through the power of sudo & setuids, allow other users to change to other user accounts, but they do that by becoming one with root, then moving to another user [11:41] amen [11:42] i am running it as root [11:43] so if i set the cron job to run every 5 min using the following */5 * * * * ls [11:43] it runs [11:43] but not 45 11 * * * ls [11:43] it's not 11.45 yet [11:44] yep [11:44] that was just an eg [11:44] 45 11 * * * root /bin/ls [11:45] 'root' might not be needed. depends if you're using "crontab -e". /etc/crontab, etc. [11:45] i am using sudo crontab -e [11:45] "root" is not needed then [11:46] * ebel is unsure, that line looks ok... [12:01] ok found it [12:01] timezone [12:01] its always time zones [12:01] root had a different time zone set than my user [12:01] thank you all for you help [12:06] hahah [12:06] always always use UTC [12:06] i don't really know much of changing server's timezones, I didn't think different users had different timezones. [12:06] thought it was all the one server time [12:06] tdr112: use ntp to keep your clocks up to day [12:06] *date [13:27] Hi I recently noticed that turning on 'smooth scrolling' on firefox is not much better [13:28] is such a feature implemented in firefox or gtk+ and so on? [16:09] Hi room [16:10] hello Chat3619 [16:37] hey BenChapman [16:45] Hey slashtommy :) === delcoyote_ is now known as delcoyote [17:08] BenChapman: how you finding life in town? [17:16] has anyone setup a vpn server on ubuntu [17:20] what kind of VPN? [17:23] i am not too sure [17:23] just been told me need one asap for a 3rd party [17:23] what equipment are you supporting? [17:24] just reading up on them now , finding out do a need a router or is it some thing i do on a server [17:24] a server can be a router [17:25] and in fact, making it a VPN server - you usually add a tun or tap interface, thereby making your server multihomed, therefore making it into a router [17:27] hmm, it sounds hard [17:28] openvpn is pretty easy to setup, a couple of hours [17:29] it uses key based authentication, so very convenient if you're connecting devices (rather than people with their laptops) [17:29] if you're wanting to provide a VPN for remote workers, you may be better off with buying an off-the-shelf router to do that [17:30] the cost would be much cheaper than your time [17:30] anyway, it's home time [17:54] slashtommy: great :) Really enjoying being central [17:54] no major issues with noise as-yet... but I wasn't there saturday night [18:59] http://www.youtube.com/watch?v=ZKBpYwuk1Uw [19:16] czajkowski: what's the story? [19:16] as of now I'm coming [19:16] but that may change on thursday [19:16] sorry I cant confirm either way [19:17] oh [19:18] we can plan for friday night :) [19:18] or rather, what's the plan?