| |
| |
| |
|
Page: 1 2 3 4 5 6
Comments:
<0> does rsync know how to do that ? <1> you can make like an image of your hd with rsync <0> can i split it ? <0> remote: when i want to write the image over my harddisk how do i do that ? <1> you just do <0> what do i do ? <1> write the "image" to your hd <1> i think you need something else than rsync <0> rsync is no use to me if i cant recover <1> rsync just copies files <1> it's up to you to recover from them if that's the use you want to make out of it <1> but it does support incremental backups <1> that's why I said rsync <1> but don't botter if you can't recover <1> it won't work <0> huh? so it does work or not ?
<1> it does <2> hi I remenber there was this trick with < or > and a that will let me fool a intereactive program into thinking a user was typing each line of a text file in <3> blah < file <2> I though that one will p*** in file as parameter <0> **** rsync its lame <3> elpargo: it will open the file as the process' stdin <2> I wanted something like what telnetlib libs do that will wait for input get it from the file then wait again <3> try 'expect' <2> ummm let me what I'm doing wrong <1> johnjra, and so are you <0> loool,how the f am i supposed to read allot of sh*t from rsync when i dont want to , i just want to back up locally , rsync is for lamers who waste their time on reading its docs,its plain ****ty <3> how constructive <4> spx2 , this is why you get banned from channels. <4> For being a spaz. <2> koala_man, it's not working here could it be my test program? <2> i'm testing it on one of apache's p***word generator programs (htdigest) <5> Where can I find the source code for the book `Free Software, Free Society`? <6> can someone explain why this works in a bash shell, but not in a bash script? echo "$mail" | sed -e "s/Subject: /Subject: Matches[$MATCH] /g" <7> soapee01: there is no reason for that not to work in a script. <7> dbe: source code? for a book? in a bash channel? <6> lhunath: the script ends with the error sed: -e expression #1, char 39: unterminated `s' command <7> soapee01: you happen to have a \ or / in that $MATCH variable? <7> s/\$// <6> the variable has two spaces in it and three words. <6> for the life of me I can't figure out why it works fine in the shell. <7> soapee01: please put this before the command: echo "sed -e 's/Subject: /Subject: Matches[$MATCH] /g'". Then run the script and give me the output of that echo statement. <5> lhunath: yes, cvs -z3 -d:ext:anoncvs@savannah.gnu.org:/cvsroot/rms-essays co rms-essays wrong channel dough. <7> heh, okay, happy reading. <7> or whatever you plan to do with it. <6> sed -e 's/Subject: /Subject: Matches[Pump <6> pump <6> laptop] /g' <6> sed: -e expression #1, char 32: unterminated `s' command <6> freecyclemailaftersed=From foo@bar Mon Jan 8 21:14:18 2007 <6> X-FreecycleMatch: YES <6> I see <6> looks like I need to escape some EOLs <7> there you go. newlines. <6> Thank you for the pointer. I've been cursing this script for several hours now. <7> do you need newlines there? <6> nope <7> $(echo $MATCH) <7> instead of $MATCH <6> that's easier than what I was going to do. <7> I would ***ume so <6> why do I always forget that echo removes new lines. <7> because, as me, you're used to quoting all your echos? <6> that'd be it. <6> =) <7> note that MATCH will be exposed to glob expansion this way. <6> I don't follow. <7> meaning if it happens to be equal to something like '*', it will echo all the files in the current directory, rather than a *. <7> !pitfalls <8> http://wooledge.org/mywiki/BashPitfalls <7> #10 <6> It shouldn't... I'm taking care to escape all punctuation from the search file that grep uses to set MATCH <7> yeah, ok. <7> yeah mean sed? <7> s/yeah // <7> s/yeah /you /
<6> nope, grep. <6> sed still blows my head, so I figure out how to do one thing at a time. <6> sometime I shoudl try awk to see what the heck it can do. <7> meh. MATCH is in the replacement pattern of s///, so it shouldn't really matter. <4> It can do everything sed, and grep, can do. <7> after nearly a year of bash and php only, designing a semi-large scale java application is draining. <4> soapee01: what are you trying to do? <6> really weird stuff with email filters. <7> goldfish: sometimes it's better not to ask. heh. <4> I See. <6> thank ya'll for the help. <9> y0 <10> How do I do a for loop in the bash shell? "for i in *.rar; do echo %i; done" isn't working <11> echo "$i" <9> %i is DOS or so <11> ah, I wondered <10> Thanks <12> http://kmwarren.imarichkid.hop.clickbank.net <13> I was wondering if there is a way to disable keyboard auto repeat. I don't have xset or setterm and the feature is not available in the bios <14> bash can't do it. <13> ah ok. Didn't think so, thought maybe there would be some magical variable that you could set. But ok <14> find and install the appropriate utility. consult a channel related to your system for the possibilities. <13> no network access unfortunately <14> yet you seem to be using irc. weird. <13> well, I do... but it's a boot disk that has no sshd capability <13> yeah.. <7> no need for sshd to use package managers. <14> well, some of them. <13> this is another box that has a remote kvm attached to it. So, I can get access to the console but its keys are sticking. Yet, in the bios it works perfectly, even the grub part is fine. It's only when it gets into the shell <13> maybe I can install setterm or something. I'll check it out. Ok thanks anyway <15> how can i change the pwd in a script to the location of the script? <7> I doubt that it's the shell that does it to you. <7> perhaps your console driver. <14> !faq location <8> http://wooledge.org/mywiki/BashFaq#faq28 -- How do I determine the location of my script? I want to read some config files from the same place. <16> hello all, I have bash, but I can't type @ in my prompt (when I'm trying the whole line is deleted), any idea? :( <7> mv /etc/inputrc{,~} <15> thanks twkm <14> and possible the private inputrc. <14> mv ~/.inputrc{,~} ; unset INPUTRC <16> it's for me? :) if it's the case, it's still not working :( <16> "Kill is @." <16> hm <14> nothing wrong with that. <14> just don't type a @ unless you mean to erase the line. <16> twkm: and what should I do when I want to write @ in prompt? (for example ssh root@localhost) <14> use the lnext character first. <14> or in that specific case, use ssh -l root localhost <16> twkm: yes, i know ssh -l, it was just an example :) <17> hello <16> twkm: or got it, many thanks everybody <17> when i try to do multiple echoes in a bash script to a log file only the first 3 execute. i think earlier i was told to step -x it or something similar but i've found no reference on google as to what that reffers to <17> hints on what i should be lookin gup? <11> maybe you are thinking of "set -x" <17> oh yes thats it <11> which would help debug it <17> grepper, i did man on set but i don't get what it does ... is it used in the script or am i setting a bash variable of some sort? <11> help set <17> oh right lets try that <17> ohhhhhhhh <17> got it, wicked <11> put it in the script: set -x at the point you wish to start it, and set +x to turn it off <17> nice! appreciate that! <17> grepper, that still leaves the generic question about echo ... it stops after 3 echoes ... is there a reason for that? not important to solve it, just curious if i'm misunderstanding something abou tthat command <17> oh set -x is awesome! thanks! <18> i have 2 files whicho contain nearly the same entries, though not in the same order, which is the best way to find entries not included in file1, but included in file2 <17> wicked, nice to at least see the commands being called <17> thanks guys <19> hacosta, I think you can use diff for that <18> gunnmjk: thats what i tought but the files contain entries in different order so it would create kind of a mess <19> maybe diff has some kind of setting...? <19> hacosta, I'm not sure but i'd love to know the answer <20> hacosta: sort them first
Return to
#bash or Go to some related
logs:
I/O Error mailq in sendmail 8.13 #css community.boredofstudies.com
#osdev mstt fonts rpm +multiple desktops on mac onLoad javascript limits how to modify gub conf initramfs versus yaird #perl
|
|