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