/srv/irclogs.ubuntu.com/2014/08/06/#ubuntu-za.txt

nuvolario.05:44
nuvolario.O05:44
nuvolariwhat happened05:44
ThatGraemeGuymornings!06:29
Symmetriahttp://logs.mirror.liquidtelecom.com/temp/evilcat.jpg <=== my kitten is evil! look at the damn things claws attacking my foot :(06:34
Kiloshi ThatGraemeGuy mazal inetpro nlsthzn and others07:40
ThatGraemeGuymorning Kilos07:40
zerefHerro08:02
charlgood morning all08:08
Kiloshi zeref charl 08:08
charlhi Kilos, ThatGraemeGuy, Symmetria, zeref, nuvolari 08:08
charldifference between dutch and american media08:08
charlin dutch media "hackers steal 1,2 billion login credentials"08:08
charlin american media "Russian Gang Amasses Over a Billion Internet Passwords"08:09
charlthe propoganda machine is turning hard again08:09
mazalMorning everyone08:26
superflyohi08:29
Kilosmorning superfly 08:30
zerefhi Kilos08:32
charlhi mazal 08:35
mazalShees I'm struggling with tar08:38
ThatGraemeGuyyeah it's sticky stuff08:39
ThatGraemeGuycan burn you too if you aren't careful08:39
mazalI have a little .sh script that tars a folder for backup08:39
* ThatGraemeGuy runs away08:39
Kiloshaha08:39
mazalhey ?08:39
mazalWhen I run it manually it works fine08:39
ThatGraemeGuyhttp://en.wikipedia.org/wiki/Tar08:39
mazalWhen my crons runs it , it doesn't work08:39
ThatGraemeGuywhat's the output from the cron?08:40
mazalNo destination file and the prvious one is gone as well08:40
ThatGraemeGuyor pastebin the script08:40
mazalHow can I see that ? 08:40
mazalthe cron output ?08:40
ThatGraemeGuyat the top of your crontab have a line like MAILTO=mazal@inter.net08:40
ThatGraemeGuyman 5 crontab08:40
mazalWhat's gonna run that mail send ? Musn't there be a working mail sender on the pc for that to work ?08:41
charlno man what are you people up to08:41
charlyou just read the mail straight out of the local unix mail file08:41
charluse the mail command, if you want a fancier tool, mutt is great08:42
mazalOk you lost me08:42
charlor even simply cat /var/mail/yourusernamehere08:42
mazalSo I should add MAILTO=justlocalusername on crontab ?08:42
mazalAnd then cat that file you mentioned charl ?08:42
charlit will automatically be set to the same username as what the cron is configured as08:43
charlso let's say it's the crontab of user charl then it will mail user charl08:43
charland then you cat /var/mail/charl08:43
mazalSo there should be already a file there ?08:43
zerefmazal, when you run the script just redirect outputs somewhere eg * * * * scrpt.sh 1>~/scrpt.log08:43
zereffrom crontab08:43
mazalcat /var/mail/mazal08:44
mazalno such file or directory08:44
charlon ubuntu ?08:45
charlthen you never received any mail yet under that user08:45
charlmaybe try zeref's solution instead08:45
charlbut then combine both stderr and stdout with 1>&2 and then append it to a file with >>08:45
mazalThat's greek to me08:46
charlunix, do you speak it ? :)08:46
mazalI added zeref's example like that at the end of the cron entry08:46
mazalNope , when that strange characters starts I get lost08:47
charloops even gave you the wrong example above, should have been 2>&1 (2 is stderr, combine that into 1 which is stdout)08:49
ThatGraemeGuymay 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 wheel08:49
mazalMust be a scrypt , is unattended use08:50
mazalAll I want to see is why it fails with cron08:50
ThatGraemeGuymeh ok08:50
ThatGraemeGuypastebin the script08:52
mazalcharl, so that 1>~/script.log won't work ?08:52
Kiloswb inetpro 08:53
charlmazal: it will only pipe stdout into the file, not stderr08:55
charlso if you get any errors it will still be sent to your mail08:55
mazalhttp://slexy.org/view/s2cSlsoIdb08:55
charlhttp://en.wikipedia.org/wiki/Standard_streams08:55
mazalcharl so it should be 2>&1~/script.log ?08:56
ThatGraemeGuyall i can think is maybe the PATH is not set up so that the 'date' and 'tar' commands can be found08:57
ThatGraemeGuyperhaps replaces them with /bin/date and /bin/tar08:57
ThatGraemeGuyor explicitly set PATH in the script08:57
mazalBut why does it only fail with cron and not manual ?08:58
ThatGraemeGuybecause of what i just said08:58
mazalSo the pc know where everything is , but cron doesn't ?08:58
ThatGraemeGuynot "the PC", the terminal session you run it from08:59
charlmazal: no 2>&1 appends stderr to stdout08:59
charlmazal: then you still need >> to append to a log file08:59
ThatGraemeGuywhat does your crontab line look like?08:59
charlso you have 2>&1 >> ~/script.log09:00
mazalok , I'm trying to understand this. So cron runs in a different environment than terminal ?09:00
charlthere is no such thing as terminal, you have a terminal emulator and inside it you have a shell interpreter09:01
charlgnome-terminal is a terminal emulator and bash, dash etc are shell interpreters09:01
ThatGraemeGuyoi09:02
* ThatGraemeGuy steps back09:02
charlinside a particular session of a shell interpreter, you have environment variables etc that can be set09:02
mazalhttp://slexy.org/view/s21VUtkxDg09:03
mazalThat's how my cron looks like now ^09:03
mazalIt's bottom two that fails ( which is obviously the same scrypt )09:03
charland if you execute them manually, everything runs fine ?09:05
mazalYep09:05
mazalNone of the other .sh scripts fails. But all the rest only has rsync /from/here /to/here09:06
mazalThey don't have the tar and that SCR= stuff in it09:06
charland the cron is running as the same user ?09:07
mazalYep , my user09:07
mazalAll sh files are in my home folder , destination has permissions for me09:07
charlcan't see anything wrong09:08
charlvery weird09:08
charlthe only weird thing i notice is that you execute both scripts in the same hour 12 minutes apart09:08
charli assume you wanted to the script to run twice a day instead 09:08
ThatGraemeGuymazal: what does script.log say?09:09
mazalWhen 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 empty09:09
mazalThatGraemeGuy, 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 yet09:10
ThatGraemeGuyjust make it run now then09:10
mazalThe weird parts is that even my file rar file that was there after the manual run was gone.09:11
ThatGraemeGuyme, i'd use rsync for that sort of thing, much faster09:11
ThatGraemeGuywell for quick and dirty, but real backups need a real backup app09:11
ThatGraemeGuybut that's just me09:12
ThatGraemeGuyi don't like to reinvent the wheel and end up with a triangle ;-)09:12
mazalrsync I always used , but it failed me once now , so don't trust it anymore.09:12
mazalI would prefer an rsync , all the others are09:12
ThatGraemeGuylol09:12
ThatGraemeGuyoi ok i think i'm done here09:12
mazalIf it keeps giving me trouble I'm going to change it to an rsync09:13
Kiloseven i use rsync09:13
mazalNever had issues with that except for the one time09:14
mazaland now I'm once bitten twice shy09:14
ThatGraemeGuyso instead of solving the issue, declare the tool untrustworthy forever and try something else09:14
Kilosbut look how you are sukkeling man09:14
mazalThat's unfortunately the way I am ThatGraemeGuy , when an app fails me I get skeptic of it09:15
ThatGraemeGuy. . .09:16
charlmazal: if the problem is with the app, that's one thing, and all apps have bugs that need to be debugged and fixed over time09:16
charlmazal: most likely the problem was not even with the app but with the resources it was working with09:16
mazalAnd I wanted to learn a new way also09:16
charlin that case it doesn't matter which app you use, you will have a problem09:16
ThatGraemeGuyso rsync mysteriously did something wrong, there's no way you maybe used it wrong or misunderstood how it works09:16
mazalTo reproduce and see I will have to delete my data on purpose and put back the backup09:18
mazalHighly likely that I did something wrong09:18
mazalI even image drives with rsync and that has never failed. Must have been me or something09:19
mazalWhat 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
mazalIf rsync data don't work , put back my image. If rsync data works , go check what I did wrong on the one that failed09:21
Kiloslol09:30
mazalHey , it ran now. log file is empty , and destination has the tar file.09:32
mazalAnd I didn't change the script and only added that log file entries to cron09:33
mazalOh and fixed the hour and minute that I had the wrong way around09:37
charlpebkac :)09:39
superfly"I didn't change anything!", but "I fixed the hour and minute that I had the wrong way round"09:41
mazalsuperfly, that is only when it runs09:41
mazalThat could not have made it not to work , just 1am instead of 12am09:41
mazalapart from that wrong hour run , I can't see what I did wrong that it didn't work last night09:42
charlbbl09:47
inetpro_good mornings10:49
Kiloshi there inetpro_ 10:49
Kilosafternoon already you can eat soon10:49
inetpro_oh thanks for the reminder10:51
=== inetpro_ is now known as inetpro
inetprooi! 10:51
Kiloshaha10:51
* Kilos loves ubuntu10:52
Symmetriakilos10:53
SymmetriaI asked about the synaptic stuff10:53
Kiloscopying stiffies is much faster than on win10:53
Kilosyes Symmetria ?10:53
Symmetria[13:29] <Spads> Symmetria: well it's assumed that people would use ke.archive.ubuntu.com and get the CNAME10:53
Symmetria[13:29] <Spads> (sorry if I got the country code wrong there)10:53
Symmetria[13:30] <Spads> Symmetria: yeah, so the installer will ask your location, and use the country code archive server10:53
Kilosyou mean the repos update?10:53
Symmetriayeah when you install it it uses the country archive you install for by default unless you change it10:54
Symmetria:) talk to him in #ubuntu-mirrors if it dont make sense 10:54
Kilosaha10:54
Kilosno i understand that. will live in kenya on my next install10:55
Symmetriayou can change it manually in  the mean time though to the ke country surely?10:55
Kilosi wonder if you can change your country on a running system10:55
Kiloshow how how10:55
Symmetriaask on #ubuntu-mirrors they can tell you :) lol10:56
Kiloslol 10:56
Kilosyou are supposed to know these things10:56
Kilosoh you are a windows user10:56
Kilostraitor10:57
Kilosi go eat, wbb10:57
Kiloshi nlsthzn ask maiatoday if things have changed. i cant remember if it was monkey that was supposed to take over from you11:04
mazalBye everyone , have a nice evening12:36
Squirmjust replaced the camera and the sim card slot in my Galaxy s312:49
Squirm^^12:49
Squirmtoo nervous to replace the glass though :/12:49
Kiloshehe13:08
Kilosbe brave13:08
nlsthznhiya uncle Kilos ... will wait and see if Maya or anyone else response...15:42
Kilosmaybe i must rev the monkey too nlsthzn 16:30
Kiloshe wasnt at last meet and maia has missed a few16:31
magespawngood evening16:35
Kiloshi magespawn 16:37
magespawnhey Kilos16:37
Kilosfix your internet man so you can come mine again'16:38
magespawnlet me try now16:38
magespawnstill does not look right, takes a long time for the server 16:40
magespawnto load16:41
Kilosdoes it see the server 16:41
Kiloshave you got the minetestc55 installed16:41
magespawnno idea16:42
Kilosstill the old one?16:42
magespawnno idea16:42
Kilosthen you need a ppa to the new one16:42
magespawnlet me go check16:42
magespawnplaying from windows Kilos 16:42
Kilosthat will take the ppa wont it16:43
Kiloswell have to ask ThatGraemeGuy 16:43
magespawnnot sure i think there is windows installer somewhere16:43
Kilosmaagoogle minetestc55 for windows16:44
Kilosai!16:45
magespawnlol16:45
Kilosmaawhere is the bot16:45
Kilosoi oi oi16:45
magespawnMaaz is on holiday anyway16:45
Kiloscocooncrash, can you please fix maaz16:46
Kiloshttp://www.youtube.com/watch?v=Mvuw54CbA0E16:48
Kilosthats the how to for windows methinks16:49
magespawnwill get to it in a second just installing wireshark16:50
Kilosi go eat17:00
magespawncool beans17:01
charlgood evening folks17:40
magespawnhey charl 17:41
charlhi magespawn 17:41
charlMaaz: coffee on17:41
* Maaz starts grinding coffee17:41
charlfinally he's back17:41
MaazCoffee's ready for charl!17:45
smilehi :p18:09
magespawnhi smile 18:09
Kiloshi charl smile 18:10
smile:D18:11
smilehow is it going? :D18:11
Kilosgood ty and you?18:12
ThatGraemeGuylo peeps18:29
Kiloshi ThatGraemeGuy 18:29
smiletot kijk :)18:40
Kiloseeek its cold out there18:51
charlhi Kilos 18:53
nlsthznnice and cosy 35ish degrees here >.<20:17
* Kilos jealous20:18
Kiloswe supposed to be 9 tonight20:18
nlsthznbrrr20:19
nuvolario/21:13
nuvolarioh hi21:13
Kiloslo nuvolari 21:14
nuvolarihi oom Kilos 21:14
Kilosek het gebrand met die leer haha21:28
Kilosoops21:28
Kilosmorning all. see ya later23:23

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!