[05:44] o. [05:44] o.O [05:44] what happened [06:29] mornings! [06:34] http://logs.mirror.liquidtelecom.com/temp/evilcat.jpg <=== my kitten is evil! look at the damn things claws attacking my foot :( [07:40] hi ThatGraemeGuy mazal inetpro nlsthzn and others [07:40] morning Kilos [08:02] Herro [08:08] good morning all [08:08] hi zeref charl [08:08] hi Kilos, ThatGraemeGuy, Symmetria, zeref, nuvolari [08:08] difference between dutch and american media [08:08] in dutch media "hackers steal 1,2 billion login credentials" [08:09] in american media "Russian Gang Amasses Over a Billion Internet Passwords" [08:09] the propoganda machine is turning hard again [08:26] Morning everyone [08:29] ohi [08:30] morning superfly [08:32] hi Kilos [08:35] hi mazal [08:38] Shees I'm struggling with tar [08:39] yeah it's sticky stuff [08:39] can burn you too if you aren't careful [08:39] I have a little .sh script that tars a folder for backup [08:39] * ThatGraemeGuy runs away [08:39] haha [08:39] hey ? [08:39] When I run it manually it works fine [08:39] http://en.wikipedia.org/wiki/Tar [08:39] When my crons runs it , it doesn't work [08:40] what's the output from the cron? [08:40] No destination file and the prvious one is gone as well [08:40] or pastebin the script [08:40] How can I see that ? [08:40] the cron output ? [08:40] at the top of your crontab have a line like MAILTO=mazal@inter.net [08:40] man 5 crontab [08:41] What's gonna run that mail send ? Musn't there be a working mail sender on the pc for that to work ? [08:41] no man what are you people up to [08:41] you just read the mail straight out of the local unix mail file [08:42] use the mail command, if you want a fancier tool, mutt is great [08:42] Ok you lost me [08:42] or even simply cat /var/mail/yourusernamehere [08:42] So I should add MAILTO=justlocalusername on crontab ? [08:42] And then cat that file you mentioned charl ? [08:43] it will automatically be set to the same username as what the cron is configured as [08:43] so let's say it's the crontab of user charl then it will mail user charl [08:43] and then you cat /var/mail/charl [08:43] So there should be already a file there ? [08:43] mazal, when you run the script just redirect outputs somewhere eg * * * * scrpt.sh 1>~/scrpt.log [08:43] from crontab [08:44] cat /var/mail/mazal [08:44] no such file or directory [08:45] on ubuntu ? [08:45] then you never received any mail yet under that user [08:45] maybe try zeref's solution instead [08:45] but then combine both stderr and stdout with 1>&2 and then append it to a file with >> [08:46] That's greek to me [08:46] unix, do you speak it ? :) [08:46] I added zeref's example like that at the end of the cron entry [08:47] Nope , when that strange characters starts I get lost [08:49] oops even gave you the wrong example above, should have been 2>&1 (2 is stderr, combine that into 1 which is stdout) [08:49] may i suggest that you look at running something like BackupPC? backup is something that's been done a billion times, and done well several thousand of those times, no need to reinvent the wheel [08:50] Must be a scrypt , is unattended use [08:50] All I want to see is why it fails with cron [08:50] meh ok [08:52] pastebin the script [08:52] charl, so that 1>~/script.log won't work ? [08:53] wb inetpro [08:55] mazal: it will only pipe stdout into the file, not stderr [08:55] so if you get any errors it will still be sent to your mail [08:55] http://slexy.org/view/s2cSlsoIdb [08:55] http://en.wikipedia.org/wiki/Standard_streams [08:56] charl so it should be 2>&1~/script.log ? [08:57] all i can think is maybe the PATH is not set up so that the 'date' and 'tar' commands can be found [08:57] perhaps replaces them with /bin/date and /bin/tar [08:57] or explicitly set PATH in the script [08:58] But why does it only fail with cron and not manual ? [08:58] because of what i just said [08:58] So the pc know where everything is , but cron doesn't ? [08:59] not "the PC", the terminal session you run it from [08:59] mazal: no 2>&1 appends stderr to stdout [08:59] mazal: then you still need >> to append to a log file [08:59] what does your crontab line look like? [09:00] so you have 2>&1 >> ~/script.log [09:00] ok , I'm trying to understand this. So cron runs in a different environment than terminal ? [09:01] there is no such thing as terminal, you have a terminal emulator and inside it you have a shell interpreter [09:01] gnome-terminal is a terminal emulator and bash, dash etc are shell interpreters [09:02] oi [09:02] * ThatGraemeGuy steps back [09:02] inside a particular session of a shell interpreter, you have environment variables etc that can be set [09:03] http://slexy.org/view/s21VUtkxDg [09:03] That's how my cron looks like now ^ [09:03] It's bottom two that fails ( which is obviously the same scrypt ) [09:05] and if you execute them manually, everything runs fine ? [09:05] Yep [09:06] None of the other .sh scripts fails. But all the rest only has rsync /from/here /to/here [09:06] They don't have the tar and that SCR= stuff in it [09:07] and the cron is running as the same user ? [09:07] Yep , my user [09:07] All sh files are in my home folder , destination has permissions for me [09:08] can't see anything wrong [09:08] very weird [09:08] the only weird thing i notice is that you execute both scripts in the same hour 12 minutes apart [09:08] i assume you wanted to the script to run twice a day instead [09:09] mazal: what does script.log say? [09:09] When I run manually it works fine and tar file is lying in the destination , after the cron time , for example after midnight last night , there is no tar file in destination , and even the one that was there after manual execute is gone as well. Destination is empty [09:10] ThatGraemeGuy, I only added that part now , next run is 12:01pm , then I can see what that file say. Previous run was midnight last night and didn't have that script.log part in there yet [09:10] just make it run now then [09:11] The weird parts is that even my file rar file that was there after the manual run was gone. [09:11] me, i'd use rsync for that sort of thing, much faster [09:11] well for quick and dirty, but real backups need a real backup app [09:12] but that's just me [09:12] i don't like to reinvent the wheel and end up with a triangle ;-) [09:12] rsync I always used , but it failed me once now , so don't trust it anymore. [09:12] I would prefer an rsync , all the others are [09:12] lol [09:12] oi ok i think i'm done here [09:13] If it keeps giving me trouble I'm going to change it to an rsync [09:13] even i use rsync [09:14] Never had issues with that except for the one time [09:14] and now I'm once bitten twice shy [09:14] so instead of solving the issue, declare the tool untrustworthy forever and try something else [09:14] but look how you are sukkeling man [09:15] That's unfortunately the way I am ThatGraemeGuy , when an app fails me I get skeptic of it [09:16] . . . [09:16] mazal: if the problem is with the app, that's one thing, and all apps have bugs that need to be debugged and fixed over time [09:16] mazal: most likely the problem was not even with the app but with the resources it was working with [09:16] And I wanted to learn a new way also [09:16] in that case it doesn't matter which app you use, you will have a problem [09:16] so rsync mysteriously did something wrong, there's no way you maybe used it wrong or misunderstood how it works [09:18] To reproduce and see I will have to delete my data on purpose and put back the backup [09:18] Highly likely that I did something wrong [09:19] I even image drives with rsync and that has never failed. Must have been me or something [09:21] What I'm going to do , I'm going to check that log file after cron runs that job again. See if it tells me what's wrong. If I can fic it , then sharp. I am also gonna add an rsync job into it to a different folder. After another run , image my drive. Delete my data , put rsync backup back and see. How does that sound ? [09:21] If rsync data don't work , put back my image. If rsync data works , go check what I did wrong on the one that failed [09:30] lol [09:32] Hey , it ran now. log file is empty , and destination has the tar file. [09:33] And I didn't change the script and only added that log file entries to cron [09:37] Oh and fixed the hour and minute that I had the wrong way around [09:39] pebkac :) [09:41] "I didn't change anything!", but "I fixed the hour and minute that I had the wrong way round" [09:41] superfly, that is only when it runs [09:41] That could not have made it not to work , just 1am instead of 12am [09:42] apart from that wrong hour run , I can't see what I did wrong that it didn't work last night [09:47] bbl [10:49] good mornings [10:49] hi there inetpro_ [10:49] afternoon already you can eat soon [10:51] oh thanks for the reminder === inetpro_ is now known as inetpro [10:51] oi! [10:51] haha [10:52] * Kilos loves ubuntu [10:53] kilos [10:53] I asked about the synaptic stuff [10:53] copying stiffies is much faster than on win [10:53] yes Symmetria ? [10:53] [13:29] Symmetria: well it's assumed that people would use ke.archive.ubuntu.com and get the CNAME [10:53] [13:29] (sorry if I got the country code wrong there) [10:53] [13:30] Symmetria: yeah, so the installer will ask your location, and use the country code archive server [10:53] you mean the repos update? [10:54] yeah when you install it it uses the country archive you install for by default unless you change it [10:54] :) talk to him in #ubuntu-mirrors if it dont make sense [10:54] aha [10:55] no i understand that. will live in kenya on my next install [10:55] you can change it manually in the mean time though to the ke country surely? [10:55] i wonder if you can change your country on a running system [10:55] how how how [10:56] ask on #ubuntu-mirrors they can tell you :) lol [10:56] lol [10:56] you are supposed to know these things [10:56] oh you are a windows user [10:57] traitor [10:57] i go eat, wbb [11:04] hi nlsthzn ask maiatoday if things have changed. i cant remember if it was monkey that was supposed to take over from you [12:36] Bye everyone , have a nice evening [12:49] just replaced the camera and the sim card slot in my Galaxy s3 [12:49] ^^ [12:49] too nervous to replace the glass though :/ [13:08] hehe [13:08] be brave [15:42] hiya uncle Kilos ... will wait and see if Maya or anyone else response... [16:30] maybe i must rev the monkey too nlsthzn [16:31] he wasnt at last meet and maia has missed a few [16:35] good evening [16:37] hi magespawn [16:37] hey Kilos [16:38] fix your internet man so you can come mine again' [16:38] let me try now [16:40] still does not look right, takes a long time for the server [16:41] to load [16:41] does it see the server [16:41] have you got the minetestc55 installed [16:42] no idea [16:42] still the old one? [16:42] no idea [16:42] then you need a ppa to the new one [16:42] let me go check [16:42] playing from windows Kilos [16:43] that will take the ppa wont it [16:43] well have to ask ThatGraemeGuy [16:43] not sure i think there is windows installer somewhere [16:44] maagoogle minetestc55 for windows [16:45] ai! [16:45] lol [16:45] maawhere is the bot [16:45] oi oi oi [16:45] Maaz is on holiday anyway [16:46] cocooncrash, can you please fix maaz [16:48] http://www.youtube.com/watch?v=Mvuw54CbA0E [16:49] thats the how to for windows methinks [16:50] will get to it in a second just installing wireshark [17:00] i go eat [17:01] cool beans [17:40] good evening folks [17:41] hey charl [17:41] hi magespawn [17:41] Maaz: coffee on [17:41] * Maaz starts grinding coffee [17:41] finally he's back [17:45] Coffee's ready for charl! [18:09] hi :p [18:09] hi smile [18:10] hi charl smile [18:11] :D [18:11] how is it going? :D [18:12] good ty and you? [18:29] lo peeps [18:29] hi ThatGraemeGuy [18:40] tot kijk :) [18:51] eeek its cold out there [18:53] hi Kilos [20:17] nice and cosy 35ish degrees here >.< [20:18] * Kilos jealous [20:18] we supposed to be 9 tonight [20:19] brrr [21:13] o/ [21:13] oh hi [21:14] lo nuvolari [21:14] hi oom Kilos [21:28] ek het gebrand met die leer haha [21:28] oops [23:23] morning all. see ya later